Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_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.008002/0.008002, allocations: 99.73 kB / 15.73 MB, free: 6.043 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.001934/0.001934, allocations: 194.5 kB / 16.68 MB, free: 5.961 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.617/2.617, allocations: 437 MB / 0.7105 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001589, allocations: 67.84 kB / 1.018 GB, free: 9.883 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9409/0.9425, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006029/0.9486, allocations: 3.079 MB / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003217/0.9519, allocations: 1.714 MB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002384/0.9522, allocations: 4 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.9534, allocations: 336.2 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0007036/0.9541, allocations: 207.1 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007591/0.9549, allocations: 187.5 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0006544/0.9556, allocations: 315 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005368/0.9561, allocations: 242.9 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003578/0.9565, allocations: 147.5 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005015/0.957, allocations: 155.5 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.313e-05/0.9571, allocations: 23.94 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005891/0.9577, allocations: 243.5 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.9579, allocations: 103.8 kB / 1.173 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.958, allocations: 119.5 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008446/0.9589, allocations: 426.7 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.9589, allocations: 3.984 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9589, allocations: 3.938 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.959, allocations: 0 / 1.173 GB, free: 12.46 MB / 0.9044 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.001347/0.9603, allocations: 0.5498 MB / 1.174 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.9604, allocations: 8.625 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.275e-05/0.9605, allocations: 62.73 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008079/0.9613, allocations: 88.55 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.9617, allocations: 263.9 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.9617, allocations: 16.81 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.9618, allocations: 32.47 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/0.9624, allocations: 373 kB / 1.175 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.9625, allocations: 0 / 1.175 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.9625, allocations: 8 kB / 1.175 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.9626, allocations: 32.36 kB / 1.175 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.9632, allocations: 313.5 kB / 1.175 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.9652, allocations: 1.529 MB / 1.176 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.9656, allocations: 226.4 kB / 1.177 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.9658, allocations: 112.8 kB / 1.177 GB, free: 8.602 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001538/0.966, allocations: 93.09 kB / 1.177 GB, free: 8.492 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.966, allocations: 30.56 kB / 1.177 GB, free: 8.453 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=18): time 2.395e-06/0.966, allocations: 4 kB / 1.177 GB, free: 8.449 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.0014/0.9674, allocations: 0.7853 MB / 1.178 GB, free: 7.613 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.9675, allocations: 55.41 kB / 1.178 GB, free: 7.547 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.9677, allocations: 195.6 kB / 1.178 GB, free: 7.348 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.9678, allocations: 29.7 kB / 1.178 GB, free: 7.312 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.9679, allocations: 155.9 kB / 1.178 GB, free: 7.156 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.578e-05/0.968, allocations: 71 kB / 1.178 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.9681, allocations: 65.59 kB / 1.178 GB, free: 7.016 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.9682, allocations: 330.8 kB / 1.178 GB, free: 6.684 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.9684, allocations: 111.9 kB / 1.179 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/0.9686, allocations: 171.5 kB / 1.179 GB, free: 6.387 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.969, allocations: 288 kB / 1.179 GB, free: 6.086 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.969, allocations: 0 / 1.179 GB, free: 6.086 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007831/0.9698, allocations: 428.8 kB / 1.179 GB, free: 5.66 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.9699, allocations: 6.344 kB / 1.179 GB, free: 5.656 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.9699, allocations: 4 kB / 1.179 GB, free: 5.652 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004462/0.9703, allocations: 100.9 kB / 1.18 GB, free: 5.551 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.9706, allocations: 51.84 kB / 1.18 GB, free: 5.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.9726, allocations: 1.887 MB / 1.181 GB, free: 3.469 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.9729, allocations: 19.92 kB / 1.181 GB, free: 3.449 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.9729, allocations: 8 kB / 1.181 GB, free: 3.441 MB / 0.9044 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.0001649/0.9731, allocations: 162.3 kB / 1.182 GB, free: 3.273 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-05/0.9731, allocations: 15.81 kB / 1.182 GB, free: 3.258 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004927/0.9736, allocations: 299.2 kB / 1.182 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.9737, allocations: 4 kB / 1.182 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.9737, allocations: 0 / 1.182 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.9737, allocations: 7.922 kB / 1.182 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009341/0.9746, allocations: 0.703 MB / 1.183 GB, free: 2.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.9746, allocations: 0 / 1.183 GB, free: 2.18 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.9749, allocations: 55.89 kB / 1.183 GB, free: 2.125 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/0.975, allocations: 7.938 kB / 1.183 GB, free: 2.117 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.975, allocations: 8 kB / 1.183 GB, free: 2.109 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.975, allocations: 0 / 1.183 GB, free: 2.109 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.975, allocations: 0 / 1.183 GB, free: 2.109 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006518/0.9757, allocations: 0.512 MB / 1.183 GB, free: 1.578 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.9758, allocations: 120.9 kB / 1.183 GB, free: 1.441 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.9758, allocations: 7.969 kB / 1.183 GB, free: 1.434 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.976, allocations: 15.98 kB / 1.183 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.9761, allocations: 11.92 kB / 1.183 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.9761, allocations: 15.98 kB / 1.183 GB, free: 1.391 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001361/0.9762, allocations: 144.6 kB / 1.183 GB, free: 1.246 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9762, allocations: 4 kB / 1.183 GB, free: 1.242 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003825/0.9766, allocations: 68 kB / 1.184 GB, free: 1.176 MB / 0.9044 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.0009685/0.9776, allocations: 1.054 MB / 1.185 GB, free: 84 kB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008023/0.9784, allocations: 430.2 kB / 1.185 GB, free: 15.65 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.9784, allocations: 0 / 1.185 GB, free: 15.65 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.9786, allocations: 121.9 kB / 1.185 GB, free: 15.53 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.979, allocations: 38.48 kB / 1.185 GB, free: 15.5 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.9833, allocations: 2.9 MB / 1.188 GB, free: 12.46 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.9837, allocations: 0.7675 MB / 1.189 GB, free: 11.67 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001829/0.9839, allocations: 57.91 kB / 1.189 GB, free: 11.62 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.984, allocations: 71.41 kB / 1.189 GB, free: 11.55 MB / 0.92 GB Notification: Performance of SimCode: time 1.122e-06/0.9841, allocations: 0 / 1.189 GB, free: 11.55 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02929/1.013, allocations: 5.096 MB / 1.194 GB, free: 6.625 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.638/10.65, allocations: 19.31 kB / 1.194 GB, free: 6.609 MB / 0.92 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches