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.005023/0.005023, allocations: 98.97 kB / 15.73 MB, free: 6.008 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.001288/0.001288, allocations: 189.9 kB / 16.67 MB, free: 5.926 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002512/0.002512, allocations: 300.2 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.014/1.014, allocations: 169.2 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002633/0.002633, allocations: 95.84 kB / 0.681 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4225, allocations: 86.97 MB / 0.7659 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.0049/0.4275, allocations: 3.075 MB / 0.7689 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00286/0.4303, allocations: 1.718 MB / 0.7706 GB, free: 15 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.4305, allocations: 7.938 kB / 0.7706 GB, free: 14.99 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.4315, allocations: 338.7 kB / 0.7709 GB, free: 14.66 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004581/0.432, allocations: 211.1 kB / 0.7711 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004457/0.4325, allocations: 179.6 kB / 0.7713 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003822/0.4328, allocations: 315 kB / 0.7716 GB, free: 13.96 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004092/0.4333, allocations: 236.7 kB / 0.7718 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.4335, allocations: 131.6 kB / 0.7719 GB, free: 13.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00033/0.4338, allocations: 163.4 kB / 0.7721 GB, free: 13.44 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.4339, allocations: 23.94 kB / 0.7721 GB, free: 13.42 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004018/0.4343, allocations: 243.5 kB / 0.7723 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.4344, allocations: 99.78 kB / 0.7724 GB, free: 13.08 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.4346, allocations: 135.3 kB / 0.7726 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005664/0.4351, allocations: 419.8 kB / 0.773 GB, free: 12.54 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4351, allocations: 0 / 0.773 GB, free: 12.54 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4352, allocations: 0 / 0.773 GB, free: 12.54 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.4352, allocations: 0 / 0.773 GB, free: 12.54 MB / 0.545 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.001001/0.4362, allocations: 0.557 MB / 0.7735 GB, free: 11.94 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.4362, allocations: 12.03 kB / 0.7735 GB, free: 11.93 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.374e-05/0.4363, allocations: 58.72 kB / 0.7736 GB, free: 11.86 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007333/0.437, allocations: 100.7 kB / 0.7737 GB, free: 11.76 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.4374, allocations: 252 kB / 0.7739 GB, free: 11.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.4374, allocations: 16.8 kB / 0.7739 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.4375, allocations: 28.52 kB / 0.774 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006264/0.4382, allocations: 380.9 kB / 0.7743 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.4382, allocations: 0 / 0.7743 GB, free: 11.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.4382, allocations: 11.98 kB / 0.7743 GB, free: 11.03 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.4383, allocations: 28.42 kB / 0.7744 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005261/0.4389, allocations: 305.5 kB / 0.7747 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.4409, allocations: 1.529 MB / 0.7761 GB, free: 9.02 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.4414, allocations: 229.3 kB / 0.7764 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.4416, allocations: 119.3 kB / 0.7765 GB, free: 8.672 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001603/0.4417, allocations: 93.34 kB / 0.7766 GB, free: 8.562 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.4418, allocations: 42.5 kB / 0.7766 GB, free: 8.512 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.372e-06/0.4418, allocations: 0 / 0.7766 GB, free: 8.512 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001369/0.4432, allocations: 0.7936 MB / 0.7774 GB, free: 7.668 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.4432, allocations: 55.41 kB / 0.7774 GB, free: 7.602 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000209/0.4434, allocations: 188.5 kB / 0.7776 GB, free: 7.41 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.4435, allocations: 37.7 kB / 0.7777 GB, free: 7.367 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.4436, allocations: 164.2 kB / 0.7778 GB, free: 7.203 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.84e-05/0.4437, allocations: 63.44 kB / 0.7779 GB, free: 7.141 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.4438, allocations: 57.64 kB / 0.7779 GB, free: 7.078 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.444, allocations: 330.8 kB / 0.7782 GB, free: 6.746 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.4442, allocations: 119.9 kB / 0.7784 GB, free: 6.629 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.4444, allocations: 170.2 kB / 0.7785 GB, free: 6.441 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.4449, allocations: 304.1 kB / 0.7788 GB, free: 6.125 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.4449, allocations: 0 / 0.7788 GB, free: 6.125 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007962/0.4457, allocations: 417.2 kB / 0.7792 GB, free: 5.711 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.4457, allocations: 4 kB / 0.7792 GB, free: 5.707 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.4457, allocations: 7.938 kB / 0.7792 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004228/0.4461, allocations: 96.95 kB / 0.7793 GB, free: 5.602 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.4464, allocations: 55.89 kB / 0.7794 GB, free: 5.547 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.4486, allocations: 1.879 MB / 0.7812 GB, free: 3.523 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.4489, allocations: 24.2 kB / 0.7812 GB, free: 3.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.4489, allocations: 8 kB / 0.7812 GB, free: 3.492 MB / 0.545 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.0001742/0.4491, allocations: 161.7 kB / 0.7814 GB, free: 3.324 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.422e-05/0.4491, allocations: 23.86 kB / 0.7814 GB, free: 3.301 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005318/0.4497, allocations: 291.4 kB / 0.7817 GB, free: 3.012 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.4497, allocations: 4 kB / 0.7817 GB, free: 3.008 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.4497, allocations: 4 kB / 0.7817 GB, free: 3.004 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.4497, allocations: 3.938 kB / 0.7817 GB, free: 3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009966/0.4507, allocations: 0.6982 MB / 0.7824 GB, free: 2.242 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.4507, allocations: 0 / 0.7824 GB, free: 2.242 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/0.451, allocations: 59.95 kB / 0.7824 GB, free: 2.184 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.4511, allocations: 7.875 kB / 0.7824 GB, free: 2.176 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.4511, allocations: 8.047 kB / 0.7825 GB, free: 2.168 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.4511, allocations: 4 kB / 0.7825 GB, free: 2.164 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.4511, allocations: 4 kB / 0.7825 GB, free: 2.16 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.4518, allocations: 0.5066 MB / 0.783 GB, free: 1.633 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.4519, allocations: 124.9 kB / 0.7831 GB, free: 1.492 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.452, allocations: 8 kB / 0.7831 GB, free: 1.484 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.4522, allocations: 12.05 kB / 0.7831 GB, free: 1.473 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.4522, allocations: 19.89 kB / 0.7831 GB, free: 1.453 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.4522, allocations: 4 kB / 0.7831 GB, free: 1.449 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001561/0.4524, allocations: 144.1 kB / 0.7833 GB, free: 1.305 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4524, allocations: 0 / 0.7833 GB, free: 1.305 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003596/0.4528, allocations: 64 kB / 0.7833 GB, free: 1.242 MB / 0.545 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.001079/0.4538, allocations: 1.061 MB / 0.7843 GB, free: 148 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00079/0.4546, allocations: 430.6 kB / 0.7848 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4547, allocations: 0 / 0.7848 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.4549, allocations: 127.8 kB / 0.7849 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.4553, allocations: 34.03 kB / 0.7849 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.4594, allocations: 2.908 MB / 0.7878 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005029/0.46, allocations: 0.7675 MB / 0.7885 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001817/0.4602, allocations: 61.91 kB / 0.7886 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.4603, allocations: 67.41 kB / 0.7886 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.4603, allocations: 3.938 kB / 0.7886 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.4917, allocations: 5.113 MB / 0.7936 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.882/10.37, allocations: 7.125 kB / 0.7936 GB, free: 6.68 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)