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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001054/0.001054, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001159/0.001158, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.313/1.313, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.474/2.474, allocations: 390.2 MB / 0.6643 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 67.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7376/0.739, allocations: 140.4 MB / 0.9491 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006059/0.7451, allocations: 3.131 MB / 0.9521 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003206/0.7484, allocations: 1.723 MB / 0.9538 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002971/0.7487, allocations: 7.406 kB / 0.9538 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.7499, allocations: 311.9 kB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006892/0.7506, allocations: 196.4 kB / 0.9543 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005819/0.7511, allocations: 164.8 kB / 0.9544 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007015/0.7519, allocations: 464.9 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006136/0.7525, allocations: 240.9 kB / 0.9551 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003287/0.7528, allocations: 119.8 kB / 0.9552 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004742/0.7533, allocations: 164.6 kB / 0.9554 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.041e-05/0.7534, allocations: 18.53 kB / 0.9554 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006206/0.754, allocations: 291.8 kB / 0.9557 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.7542, allocations: 97.38 kB / 0.9558 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002289/0.7544, allocations: 118.7 kB / 0.9559 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007458/0.7552, allocations: 426.5 kB / 0.9563 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.7552, allocations: 5.375 kB / 0.9563 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7552, allocations: 0 / 0.9563 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.558e-05/0.7552, allocations: 0 / 0.9563 GB, free: 3.832 MB / 0.7169 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.001348/0.7566, allocations: 0.5473 MB / 0.9568 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.7567, allocations: 9 kB / 0.9568 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.78e-05/0.7567, allocations: 59.12 kB / 0.9569 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008579/0.7576, allocations: 93.02 kB / 0.957 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.758, allocations: 260.7 kB / 0.9572 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.758, allocations: 13.69 kB / 0.9572 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.7581, allocations: 24.09 kB / 0.9573 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006669/0.7588, allocations: 382.7 kB / 0.9576 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.7588, allocations: 1.719 kB / 0.9576 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.7589, allocations: 9.922 kB / 0.9576 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/0.759, allocations: 27.89 kB / 0.9577 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005685/0.7596, allocations: 307 kB / 0.958 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.7613, allocations: 1.536 MB / 0.9595 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.7618, allocations: 224.6 kB / 0.9597 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.762, allocations: 116.5 kB / 0.9598 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.7621, allocations: 87.62 kB / 0.9599 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.7622, allocations: 39.41 kB / 0.9599 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 2.975e-06/0.7622, allocations: 3.938 kB / 0.9599 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001356/0.7635, allocations: 0.7976 MB / 0.9607 GB, free: 220 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.7636, allocations: 53.47 kB / 0.9607 GB, free: 156 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.7638, allocations: 189.7 kB / 0.9609 GB, free: 8 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.794e-05/0.7639, allocations: 30.77 kB / 0.961 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.764, allocations: 171.1 kB / 0.9611 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.534e-05/0.7641, allocations: 64.19 kB / 0.9612 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.7642, allocations: 58.72 kB / 0.9612 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.7643, allocations: 331.9 kB / 0.9616 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.7645, allocations: 113 kB / 0.9617 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.7648, allocations: 168 kB / 0.9618 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.7652, allocations: 305.7 kB / 0.9621 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.7652, allocations: 1.156 kB / 0.9621 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008373/0.7661, allocations: 419.7 kB / 0.9625 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.7661, allocations: 6.156 kB / 0.9625 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.7661, allocations: 1 kB / 0.9625 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004607/0.7666, allocations: 99.11 kB / 0.9626 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.7669, allocations: 53.2 kB / 0.9627 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.769, allocations: 1.742 MB / 0.9644 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.7692, allocations: 15.42 kB / 0.9644 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/0.7692, allocations: 8.531 kB / 0.9644 GB, free: 13.12 MB / 0.7325 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.0002025/0.7695, allocations: 164.4 kB / 0.9645 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.7695, allocations: 16.91 kB / 0.9646 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005725/0.7701, allocations: 295.3 kB / 0.9648 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.7701, allocations: 2.594 kB / 0.9648 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.7701, allocations: 0 / 0.9648 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.7701, allocations: 0 / 0.9648 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.7713, allocations: 0.7023 MB / 0.9655 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.7713, allocations: 1.094 kB / 0.9655 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.7716, allocations: 62.14 kB / 0.9656 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.7717, allocations: 2.125 kB / 0.9656 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.7717, allocations: 5.953 kB / 0.9656 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.7717, allocations: 6.094 kB / 0.9656 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.7717, allocations: 5 kB / 0.9656 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007732/0.7725, allocations: 0.5193 MB / 0.9661 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.7726, allocations: 115.8 kB / 0.9662 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.7727, allocations: 5.969 kB / 0.9662 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.7729, allocations: 13.89 kB / 0.9662 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.7729, allocations: 14.83 kB / 0.9663 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.773, allocations: 4.406 kB / 0.9663 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001696/0.7731, allocations: 147.2 kB / 0.9664 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7732, allocations: 3.938 kB / 0.9664 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000431/0.7736, allocations: 70.25 kB / 0.9665 GB, free: 11.59 MB / 0.7325 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.001204/0.7748, allocations: 1.059 MB / 0.9675 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008621/0.7757, allocations: 425.5 kB / 0.9679 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.7757, allocations: 1 kB / 0.9679 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.7759, allocations: 120.9 kB / 0.968 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.7764, allocations: 35.8 kB / 0.9681 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004603/0.781, allocations: 2.977 MB / 0.971 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.7814, allocations: 0.7743 MB / 0.9717 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002196/0.7816, allocations: 60.22 kB / 0.9718 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.7818, allocations: 67.19 kB / 0.9719 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of SimCode: time 5.61e-07/0.7818, allocations: 0 / 0.9719 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.8105, allocations: 4.785 MB / 0.9765 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/0.8108, allocations: 241.2 kB / 0.9768 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/2.651, allocations: 5.156 kB / 0.9768 GB, free: 4.734 MB / 0.7325 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