Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_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.008545/0.008545, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001753/0.001754, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.384/1.384, 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/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.232/2.232, allocations: 390.3 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001414, allocations: 71.83 kB / 0.9504 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8465/0.848, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004877/0.8529, allocations: 3.081 MB / 1.09 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003027/0.8559, allocations: 1.733 MB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.8562, allocations: 8.094 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.8574, allocations: 322.1 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008209/0.8582, allocations: 225.9 kB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007473/0.859, allocations: 174.9 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005995/0.8596, allocations: 318.8 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005645/0.8602, allocations: 243.3 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000308/0.8605, allocations: 131 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004331/0.8609, allocations: 158.2 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.711e-05/0.861, allocations: 20.28 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006241/0.8616, allocations: 246.7 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.8618, allocations: 109.2 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.862, allocations: 128.5 kB / 1.094 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007944/0.8628, allocations: 416.6 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.8628, allocations: 0.75 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.773e-06/0.8628, allocations: 0 / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.8628, allocations: 0 / 1.095 GB, free: 0.9648 MB / 0.8575 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.001203/0.864, allocations: 0.5477 MB / 1.095 GB, free: 500 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.8641, allocations: 9.75 kB / 1.095 GB, free: 500 kB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.926e-05/0.8642, allocations: 65.19 kB / 1.095 GB, free: 440 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009235/0.8651, allocations: 92.06 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004329/0.8655, allocations: 264.9 kB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.8656, allocations: 13.28 kB / 1.096 GB, free: 172 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.8657, allocations: 25.58 kB / 1.096 GB, free: 164 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007808/0.8665, allocations: 376.7 kB / 1.096 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.8665, allocations: 1.312 kB / 1.096 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.8666, allocations: 13.73 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.8667, allocations: 30.88 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006152/0.8673, allocations: 304.7 kB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.8695, allocations: 1.525 MB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005186/0.8701, allocations: 226.4 kB / 1.098 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.8703, allocations: 119.5 kB / 1.098 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.8704, allocations: 86.17 kB / 1.098 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.8705, allocations: 41.84 kB / 1.098 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 2.044e-06/0.8705, allocations: 3.938 kB / 1.098 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001473/0.872, allocations: 0.785 MB / 1.099 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.872, allocations: 54.61 kB / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.8723, allocations: 203.3 kB / 1.099 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.8723, allocations: 26.77 kB / 1.099 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.8724, allocations: 160.7 kB / 1.099 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.574e-05/0.8725, allocations: 74.55 kB / 1.099 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.8727, allocations: 53.08 kB / 1.099 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.8728, allocations: 333.2 kB / 1.1 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.873, allocations: 118.5 kB / 1.1 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.8733, allocations: 169.1 kB / 1.1 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004819/0.8738, allocations: 296.8 kB / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.8738, allocations: 1.062 kB / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009498/0.8748, allocations: 420 kB / 1.101 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.8748, allocations: 5.875 kB / 1.101 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.8748, allocations: 2.906 kB / 1.101 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005326/0.8754, allocations: 99.47 kB / 1.101 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.8757, allocations: 51.77 kB / 1.101 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.8783, allocations: 1.873 MB / 1.103 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002753/0.8786, allocations: 19.84 kB / 1.103 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.8786, allocations: 12.44 kB / 1.103 GB, free: 10.93 MB / 0.8731 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.0002017/0.8788, allocations: 152.6 kB / 1.103 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.8789, allocations: 20.75 kB / 1.103 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006278/0.8795, allocations: 299.9 kB / 1.103 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.8796, allocations: 2.531 kB / 1.103 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.8796, allocations: 1.094 kB / 1.103 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.8796, allocations: 4.641 kB / 1.103 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.881, allocations: 0.7025 MB / 1.104 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.881, allocations: 0 / 1.104 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.8814, allocations: 55.38 kB / 1.104 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.8814, allocations: 9.312 kB / 1.104 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.322e-05/0.8815, allocations: 7.578 kB / 1.104 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/0.8815, allocations: 13.36 kB / 1.104 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.8815, allocations: 0.7969 kB / 1.104 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008528/0.8823, allocations: 0.5104 MB / 1.104 GB, free: 9.875 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.8825, allocations: 119.3 kB / 1.105 GB, free: 9.762 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.8826, allocations: 8.359 kB / 1.105 GB, free: 9.758 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.8828, allocations: 13.78 kB / 1.105 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.8828, allocations: 9.359 kB / 1.105 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.8828, allocations: 10.27 kB / 1.105 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001699/0.883, allocations: 142.3 kB / 1.105 GB, free: 9.652 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.8e-07/0.883, allocations: 0 / 1.105 GB, free: 9.652 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004571/0.8835, allocations: 66.03 kB / 1.105 GB, free: 9.645 MB / 0.8731 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.001049/0.8845, allocations: 1.066 MB / 1.106 GB, free: 8.812 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009039/0.8855, allocations: 442 kB / 1.106 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.8855, allocations: 0 / 1.106 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001975/0.8857, allocations: 125.4 kB / 1.106 GB, free: 8.539 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.8861, allocations: 42.17 kB / 1.106 GB, free: 8.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005498/0.8916, allocations: 2.881 MB / 1.109 GB, free: 6.574 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/0.8922, allocations: 0.7683 MB / 1.11 GB, free: 5.871 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002399/0.8925, allocations: 60.56 kB / 1.11 GB, free: 5.863 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.8926, allocations: 69.56 kB / 1.11 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of SimCode: time 7.21e-07/0.8926, allocations: 4 kB / 1.11 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.9243, allocations: 5.148 MB / 1.115 GB, free: 5.227 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/11.19, allocations: 13.98 kB / 1.115 GB, free: 5.219 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches