Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 189.8 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002136/0.002136, allocations: 290.7 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8635/0.8635, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 94.86 kB / 0.5948 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1276, allocations: 86.98 MB / 0.6797 GB, free: 0.957 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004132/0.1318, allocations: 3.112 MB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.1341, allocations: 1.715 MB / 0.6845 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1342, allocations: 5.75 kB / 0.6845 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008702/0.1351, allocations: 319.9 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004141/0.1355, allocations: 192 kB / 0.685 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.1359, allocations: 161.7 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.1362, allocations: 323 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003836/0.1366, allocations: 269.3 kB / 0.6857 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.1368, allocations: 139.5 kB / 0.6858 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.1371, allocations: 163.5 kB / 0.686 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.1372, allocations: 20 kB / 0.686 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.1375, allocations: 247.5 kB / 0.6862 GB, free: 10.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.623e-05/0.1376, allocations: 107.7 kB / 0.6863 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1377, allocations: 115.5 kB / 0.6864 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.1382, allocations: 442.7 kB / 0.6869 GB, free: 9.672 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1382, allocations: 0 / 0.6869 GB, free: 9.672 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1382, allocations: 0 / 0.6869 GB, free: 9.672 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1382, allocations: 0 / 0.6869 GB, free: 9.672 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007754/0.139, allocations: 0.5381 MB / 0.6874 GB, free: 9.086 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.139, allocations: 12.03 kB / 0.6874 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.947e-05/0.1391, allocations: 58.72 kB / 0.6874 GB, free: 9.008 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006539/0.1397, allocations: 96.55 kB / 0.6875 GB, free: 8.914 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002466/0.14, allocations: 259.8 kB / 0.6878 GB, free: 8.621 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.14, allocations: 16.8 kB / 0.6878 GB, free: 8.605 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.9e-05/0.1401, allocations: 24.56 kB / 0.6878 GB, free: 8.582 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.1406, allocations: 380.9 kB / 0.6882 GB, free: 8.188 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.1406, allocations: 0 / 0.6882 GB, free: 8.188 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/0.1406, allocations: 8 kB / 0.6882 GB, free: 8.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.118e-05/0.1407, allocations: 28.42 kB / 0.6882 GB, free: 8.152 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.1412, allocations: 305.5 kB / 0.6885 GB, free: 7.855 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.1427, allocations: 1.541 MB / 0.69 GB, free: 6.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003788/0.1431, allocations: 230.5 kB / 0.6902 GB, free: 5.926 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.1432, allocations: 120.8 kB / 0.6904 GB, free: 5.805 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.1433, allocations: 85.09 kB / 0.6904 GB, free: 5.703 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.1434, allocations: 34.56 kB / 0.6905 GB, free: 5.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 2.505e-06/0.1434, allocations: 7.984 kB / 0.6905 GB, free: 5.652 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001045/0.1444, allocations: 0.7899 MB / 0.6912 GB, free: 4.812 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.1445, allocations: 59.34 kB / 0.6913 GB, free: 4.742 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.1446, allocations: 187.7 kB / 0.6915 GB, free: 4.551 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.1446, allocations: 29.7 kB / 0.6915 GB, free: 4.516 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.44e-05/0.1447, allocations: 159.9 kB / 0.6917 GB, free: 4.355 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.1448, allocations: 74.94 kB / 0.6917 GB, free: 4.281 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.634e-05/0.1449, allocations: 57.69 kB / 0.6918 GB, free: 4.219 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.145, allocations: 330.8 kB / 0.6921 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.1451, allocations: 119.9 kB / 0.6922 GB, free: 3.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.1453, allocations: 163 kB / 0.6924 GB, free: 3.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.1457, allocations: 303.2 kB / 0.6927 GB, free: 3.277 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1457, allocations: 4 kB / 0.6927 GB, free: 3.273 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006647/0.1463, allocations: 417.9 kB / 0.6931 GB, free: 2.855 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.1464, allocations: 7.938 kB / 0.6931 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-06/0.1464, allocations: 4 kB / 0.6931 GB, free: 2.844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003678/0.1467, allocations: 100.9 kB / 0.6932 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.147, allocations: 51.89 kB / 0.6932 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/0.1486, allocations: 1.871 MB / 0.695 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.1488, allocations: 19.92 kB / 0.6951 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1488, allocations: 8.062 kB / 0.6951 GB, free: 0.6523 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.149, allocations: 158.4 kB / 0.6952 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.787e-05/0.1491, allocations: 19.81 kB / 0.6952 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004107/0.1495, allocations: 297.2 kB / 0.6955 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1495, allocations: 192 / 0.6955 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.1495, allocations: 11.94 kB / 0.6955 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1495, allocations: 3.938 kB / 0.6955 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007476/0.1502, allocations: 0.6991 MB / 0.6962 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1503, allocations: 0 / 0.6962 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002848/0.1506, allocations: 63.89 kB / 0.6963 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1506, allocations: 3.938 kB / 0.6963 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.1506, allocations: 7.984 kB / 0.6963 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1506, allocations: 0 / 0.6963 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1506, allocations: 4.062 kB / 0.6963 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005179/0.1511, allocations: 0.5117 MB / 0.6968 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.803e-05/0.1512, allocations: 120.9 kB / 0.6969 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.1513, allocations: 8 kB / 0.6969 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.1514, allocations: 7.984 kB / 0.6969 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.1515, allocations: 20.05 kB / 0.697 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.1515, allocations: 4 kB / 0.697 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001107/0.1516, allocations: 144.1 kB / 0.6971 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1516, allocations: 0 / 0.6971 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003151/0.1519, allocations: 64 kB / 0.6972 GB, free: 14.41 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007527/0.1527, allocations: 1.064 MB / 0.6982 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006742/0.1534, allocations: 444.3 kB / 0.6986 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1534, allocations: 448 / 0.6986 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.1536, allocations: 127.8 kB / 0.6987 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1539, allocations: 34.59 kB / 0.6988 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.1572, allocations: 2.979 MB / 0.7017 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.1575, allocations: 0.7714 MB / 0.7024 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001676/0.1576, allocations: 61.89 kB / 0.7025 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.1577, allocations: 63.42 kB / 0.7026 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1577, allocations: 0 / 0.7026 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.776/2.934, allocations: 4.941 MB / 0.7074 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002473/2.934, allocations: 260.9 kB / 0.7076 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/5.106, allocations: 4 kB / 0.7076 GB, free: 3.699 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)