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.004529/0.004529, allocations: 98.97 kB / 15.73 MB, free: 6.004 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.001041/0.001042, allocations: 192.9 kB / 16.67 MB, free: 5.93 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.229/1.229, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 272.6 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.895/0.895, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 92.23 kB / 0.681 GB, free: 7.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.372, allocations: 86.98 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004291/0.3763, allocations: 3.075 MB / 0.7689 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00268/0.379, allocations: 1.722 MB / 0.7706 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.3792, allocations: 4 kB / 0.7706 GB, free: 15.05 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009721/0.3802, allocations: 337.6 kB / 0.7709 GB, free: 14.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000478/0.3807, allocations: 211.1 kB / 0.7711 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004557/0.3811, allocations: 183.5 kB / 0.7713 GB, free: 14.34 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004028/0.3816, allocations: 319 kB / 0.7716 GB, free: 14.03 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000409/0.382, allocations: 228.8 kB / 0.7718 GB, free: 13.8 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002422/0.3822, allocations: 139.6 kB / 0.7719 GB, free: 13.66 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003319/0.3826, allocations: 159.5 kB / 0.7721 GB, free: 13.51 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.869e-05/0.3826, allocations: 20 kB / 0.7721 GB, free: 13.49 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003986/0.383, allocations: 247.5 kB / 0.7724 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.3832, allocations: 99.78 kB / 0.7724 GB, free: 13.15 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.3833, allocations: 123.4 kB / 0.7726 GB, free: 13.03 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000538/0.3838, allocations: 427.7 kB / 0.773 GB, free: 12.61 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3839, allocations: 4 kB / 0.773 GB, free: 12.61 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3839, allocations: 0 / 0.773 GB, free: 12.61 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.115e-05/0.3839, allocations: 0 / 0.773 GB, free: 12.61 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.000918/0.3848, allocations: 0.5531 MB / 0.7735 GB, free: 12.01 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.3848, allocations: 8.031 kB / 0.7735 GB, free: 12 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.537e-05/0.3849, allocations: 66.66 kB / 0.7736 GB, free: 11.93 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007563/0.3857, allocations: 96.69 kB / 0.7737 GB, free: 11.83 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.386, allocations: 260 kB / 0.7739 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.386, allocations: 20.8 kB / 0.7739 GB, free: 11.52 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.085e-05/0.3861, allocations: 24.52 kB / 0.774 GB, free: 11.5 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005341/0.3867, allocations: 372.9 kB / 0.7743 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.3867, allocations: 4 kB / 0.7743 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.3867, allocations: 15.98 kB / 0.7743 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.727e-05/0.3868, allocations: 32.41 kB / 0.7744 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000441/0.3873, allocations: 305.5 kB / 0.7747 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.389, allocations: 1.526 MB / 0.7762 GB, free: 9.082 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004035/0.3894, allocations: 234.4 kB / 0.7764 GB, free: 8.844 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.3895, allocations: 116.8 kB / 0.7765 GB, free: 8.727 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.3897, allocations: 85.41 kB / 0.7766 GB, free: 8.625 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.3897, allocations: 38.56 kB / 0.7766 GB, free: 8.578 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/0.3897, allocations: 0 / 0.7766 GB, free: 8.578 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001139/0.3909, allocations: 0.7951 MB / 0.7774 GB, free: 7.734 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.3909, allocations: 55.41 kB / 0.7774 GB, free: 7.668 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.3911, allocations: 192.4 kB / 0.7776 GB, free: 7.473 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.3911, allocations: 33.7 kB / 0.7777 GB, free: 7.434 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.43e-05/0.3912, allocations: 160.2 kB / 0.7778 GB, free: 7.273 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.3913, allocations: 71.42 kB / 0.7779 GB, free: 7.203 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.281e-05/0.3914, allocations: 57.64 kB / 0.7779 GB, free: 7.141 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.976e-05/0.3915, allocations: 330.8 kB / 0.7782 GB, free: 6.809 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.3916, allocations: 115.9 kB / 0.7784 GB, free: 6.695 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3918, allocations: 170.2 kB / 0.7785 GB, free: 6.508 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.3922, allocations: 304.1 kB / 0.7788 GB, free: 6.191 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3922, allocations: 0 / 0.7788 GB, free: 6.191 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006995/0.3929, allocations: 421.2 kB / 0.7792 GB, free: 5.773 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3929, allocations: 4 kB / 0.7792 GB, free: 5.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.393, allocations: 4 kB / 0.7792 GB, free: 5.766 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003798/0.3933, allocations: 96.95 kB / 0.7793 GB, free: 5.668 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.3936, allocations: 55.89 kB / 0.7794 GB, free: 5.613 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.3954, allocations: 1.883 MB / 0.7812 GB, free: 3.586 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.3956, allocations: 19.92 kB / 0.7812 GB, free: 3.566 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.3956, allocations: 8.062 kB / 0.7812 GB, free: 3.559 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.0001394/0.3958, allocations: 161.8 kB / 0.7814 GB, free: 3.391 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/0.3958, allocations: 23.8 kB / 0.7814 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004327/0.3963, allocations: 291.4 kB / 0.7817 GB, free: 3.078 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3963, allocations: 0 / 0.7817 GB, free: 3.078 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.3963, allocations: 0 / 0.7817 GB, free: 3.078 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3963, allocations: 7.938 kB / 0.7817 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008325/0.3971, allocations: 0.7029 MB / 0.7824 GB, free: 2.305 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3972, allocations: 0 / 0.7824 GB, free: 2.305 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.3975, allocations: 63.89 kB / 0.7824 GB, free: 2.242 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.3975, allocations: 3.938 kB / 0.7824 GB, free: 2.238 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.3975, allocations: 4 kB / 0.7824 GB, free: 2.234 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.3975, allocations: 3.984 kB / 0.7825 GB, free: 2.23 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3975, allocations: 64 / 0.7825 GB, free: 2.23 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.3981, allocations: 0.5184 MB / 0.783 GB, free: 1.695 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.3982, allocations: 124.9 kB / 0.7831 GB, free: 1.555 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.3982, allocations: 8 kB / 0.7831 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.3984, allocations: 7.984 kB / 0.7831 GB, free: 1.539 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.126e-05/0.3985, allocations: 19.95 kB / 0.7831 GB, free: 1.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.3985, allocations: 8 kB / 0.7831 GB, free: 1.512 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001218/0.3986, allocations: 144.1 kB / 0.7833 GB, free: 1.367 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3986, allocations: 0 / 0.7833 GB, free: 1.367 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003366/0.399, allocations: 64 kB / 0.7833 GB, free: 1.305 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.000824/0.3998, allocations: 1.061 MB / 0.7844 GB, free: 212 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006665/0.4005, allocations: 426.3 kB / 0.7848 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4005, allocations: 4.438 kB / 0.7848 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.4006, allocations: 123.9 kB / 0.7849 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.401, allocations: 44.25 kB / 0.7849 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.4044, allocations: 2.907 MB / 0.7878 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.4048, allocations: 0.7714 MB / 0.7885 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001605/0.4049, allocations: 57.91 kB / 0.7886 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.405, allocations: 67.41 kB / 0.7886 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.405, allocations: 3.938 kB / 0.7886 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.4265, allocations: 5.106 MB / 0.7936 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.687/9.114, allocations: 4.781 kB / 0.7936 GB, free: 6.742 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)