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.006742/0.006742, allocations: 100.5 kB / 15.73 MB, free: 6.496 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.001749/0.001749, allocations: 199 kB / 16.68 MB, free: 6.375 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002499/0.002499, allocations: 275.2 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.006/1.006, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002637/0.002637, allocations: 99.84 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1542, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004418/0.1587, allocations: 3.076 MB / 0.7689 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002523/0.1612, allocations: 1.722 MB / 0.7706 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.576e-05/0.1613, allocations: 4 kB / 0.7706 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009601/0.1623, allocations: 330.7 kB / 0.7709 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003933/0.1627, allocations: 215.1 kB / 0.7711 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.1631, allocations: 175.5 kB / 0.7713 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003523/0.1634, allocations: 319 kB / 0.7716 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003781/0.1638, allocations: 244.7 kB / 0.7718 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.164, allocations: 135.6 kB / 0.772 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.1643, allocations: 155.5 kB / 0.7721 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.1643, allocations: 24 kB / 0.7721 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003582/0.1647, allocations: 247.5 kB / 0.7724 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.1648, allocations: 103.7 kB / 0.7725 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.165, allocations: 115.5 kB / 0.7726 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005136/0.1655, allocations: 430.5 kB / 0.773 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1655, allocations: 0 / 0.773 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.407e-06/0.1655, allocations: 0 / 0.773 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.1655, allocations: 3.938 kB / 0.773 GB, free: 1.668 MB / 0.5606 GB 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.0009392/0.1665, allocations: 0.5532 MB / 0.7735 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1665, allocations: 8.031 kB / 0.7735 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.207e-05/0.1666, allocations: 54.73 kB / 0.7736 GB, free: 0.9961 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000711/0.1673, allocations: 96.69 kB / 0.7737 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.1676, allocations: 263.9 kB / 0.7739 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.1677, allocations: 16.81 kB / 0.7739 GB, free: 0.5898 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-05/0.1678, allocations: 24.52 kB / 0.774 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005837/0.1684, allocations: 377 kB / 0.7743 GB, free: 176 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.1684, allocations: 0 / 0.7743 GB, free: 176 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.1684, allocations: 7.984 kB / 0.7743 GB, free: 168 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001017/0.1685, allocations: 40.34 kB / 0.7744 GB, free: 128 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2794/0.4479, allocations: 304.1 kB / 0.7747 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.4495, allocations: 1.521 MB / 0.7761 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000402/0.4499, allocations: 228.7 kB / 0.7764 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.4501, allocations: 116.5 kB / 0.7765 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.4502, allocations: 85.88 kB / 0.7766 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.4502, allocations: 42.52 kB / 0.7766 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.4502, allocations: 0.7812 kB / 0.7766 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19): time 0.001072/0.4513, allocations: 0.7934 MB / 0.7774 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.4513, allocations: 55.53 kB / 0.7774 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.4515, allocations: 194.8 kB / 0.7776 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.4515, allocations: 31.14 kB / 0.7776 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.075e-05/0.4516, allocations: 166.1 kB / 0.7778 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/0.4516, allocations: 70.36 kB / 0.7779 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.844e-05/0.4517, allocations: 64 kB / 0.7779 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.105e-05/0.4518, allocations: 326.6 kB / 0.7782 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.4519, allocations: 118 kB / 0.7784 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.4521, allocations: 175.9 kB / 0.7785 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000343/0.4525, allocations: 295.2 kB / 0.7788 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.4525, allocations: 0.9688 kB / 0.7788 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006909/0.4532, allocations: 417.2 kB / 0.7792 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.4532, allocations: 7.75 kB / 0.7792 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4532, allocations: 0.9375 kB / 0.7792 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003867/0.4536, allocations: 103.6 kB / 0.7793 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/0.4539, allocations: 56.3 kB / 0.7794 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.4554, allocations: 1.875 MB / 0.7812 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.4556, allocations: 15.67 kB / 0.7812 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.4556, allocations: 11.31 kB / 0.7812 GB, free: 10.76 MB / 0.5606 GB 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.0001091/0.4557, allocations: 161.1 kB / 0.7814 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.4558, allocations: 20.17 kB / 0.7814 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004269/0.4562, allocations: 300.2 kB / 0.7817 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.4562, allocations: 2.031 kB / 0.7817 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.4562, allocations: 4.812 kB / 0.7817 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.4563, allocations: 1.266 kB / 0.7817 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007536/0.457, allocations: 0.7099 MB / 0.7824 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.457, allocations: 0 / 0.7824 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/0.4573, allocations: 57.89 kB / 0.7824 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.4573, allocations: 2.062 kB / 0.7824 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.4574, allocations: 6.25 kB / 0.7824 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.4574, allocations: 5.438 kB / 0.7825 GB, free: 10 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.4574, allocations: 5.828 kB / 0.7825 GB, free: 10 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004853/0.4579, allocations: 0.5099 MB / 0.783 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.715e-05/0.4579, allocations: 118.8 kB / 0.7831 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.458, allocations: 13.09 kB / 0.7831 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.4582, allocations: 18.17 kB / 0.7831 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.944e-05/0.4582, allocations: 9.672 kB / 0.7831 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.4583, allocations: 8.219 kB / 0.7831 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.674e-05/0.4584, allocations: 147.7 kB / 0.7833 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.11e-07/0.4584, allocations: 0 / 0.7833 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004396/0.4588, allocations: 65.12 kB / 0.7833 GB, free: 9.484 MB / 0.5606 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.0006556/0.4595, allocations: 1.059 MB / 0.7844 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006054/0.4601, allocations: 435.8 kB / 0.7848 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4601, allocations: 1.125 kB / 0.7848 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.4603, allocations: 119.4 kB / 0.7849 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.4607, allocations: 37.31 kB / 0.7849 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.4637, allocations: 2.893 MB / 0.7877 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.4638, allocations: 0.7773 MB / 0.7885 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001419/0.464, allocations: 61.98 kB / 0.7886 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.277e-05/0.4641, allocations: 66.73 kB / 0.7886 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.4641, allocations: 0 / 0.7886 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.825/2.29, allocations: 5.112 MB / 0.7936 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/17.87, allocations: 6.188 kB / 0.7936 GB, free: 5.141 MB / 0.5606 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)