Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth",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.001647/0.001647, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002007/0.002007, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.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.428/2.428, allocations: 390.3 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 63.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5747/0.5761, allocations: 140.4 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002192/0.5783, allocations: 1.483 MB / 0.9512 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.5793, allocations: 0.7374 MB / 0.9519 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.758e-05/0.5794, allocations: 0 / 0.9519 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.922e-05/0.5794, allocations: 3.938 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.366e-05/0.5795, allocations: 9.094 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.5799, allocations: 126.1 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.092e-05/0.58, allocations: 75.81 kB / 0.9521 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.087e-05/0.5801, allocations: 17.34 kB / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.122e-05/0.5802, allocations: 38.5 kB / 0.9522 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.532e-05/0.5803, allocations: 38.7 kB / 0.9522 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.5803, allocations: 7.344 kB / 0.9522 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.5805, allocations: 93.16 kB / 0.9523 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.5805, allocations: 18.66 kB / 0.9523 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.959e-05/0.5805, allocations: 32.45 kB / 0.9523 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.5807, allocations: 139.6 kB / 0.9525 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5807, allocations: 0 / 0.9525 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5808, allocations: 3.938 kB / 0.9525 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.5808, allocations: 1.125 kB / 0.9525 GB, free: 7.027 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004868/0.5813, allocations: 427.1 kB / 0.9529 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.5813, allocations: 14.52 kB / 0.9529 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.871e-05/0.5813, allocations: 35.94 kB / 0.9529 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.5814, allocations: 7.625 kB / 0.9529 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.603e-05/0.5814, allocations: 168.2 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.5815, allocations: 10.8 kB / 0.9531 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.5815, allocations: 8.047 kB / 0.9531 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001618/0.5817, allocations: 77.27 kB / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.5817, allocations: 0 / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.5817, allocations: 0 / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.5817, allocations: 1.406 kB / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.5818, allocations: 40.34 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.5823, allocations: 317.2 kB / 0.9535 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.5825, allocations: 53.31 kB / 0.9536 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.081e-05/0.5825, allocations: 32.03 kB / 0.9536 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.5826, allocations: 4 kB / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.5827, allocations: 74.28 kB / 0.9537 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.5827, allocations: 0 / 0.9537 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000354/0.5831, allocations: 140.5 kB / 0.9538 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.5831, allocations: 60.42 kB / 0.9539 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/0.5832, allocations: 120.8 kB / 0.954 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.5832, allocations: 31.08 kB / 0.954 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.003e-05/0.5833, allocations: 90.66 kB / 0.9541 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.5833, allocations: 14.72 kB / 0.9541 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.094e-05/0.5833, allocations: 30.67 kB / 0.9542 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.124e-05/0.5834, allocations: 321.1 kB / 0.9545 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.834e-05/0.5835, allocations: 29.75 kB / 0.9545 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.972e-05/0.5836, allocations: 49.62 kB / 0.9545 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.5837, allocations: 71.95 kB / 0.9546 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.5837, allocations: 0.7812 kB / 0.9546 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002094/0.5839, allocations: 117.7 kB / 0.9547 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.5839, allocations: 9.719 kB / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.5839, allocations: 0 / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.584, allocations: 1.219 kB / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.08e-05/0.5841, allocations: 12.11 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.5841, allocations: 2.156 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.313e-05/0.5841, allocations: 7.406 kB / 0.9548 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.5842, allocations: 3.344 kB / 0.9548 GB, free: 4.84 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (win.occ,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 6.008e-05/0.5842, allocations: 122.2 kB / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.695e-05/0.5842, allocations: 15.33 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.273e-05/0.5843, allocations: 13.59 kB / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5843, allocations: 1.312 kB / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.5843, allocations: 0 / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.5843, allocations: 1.219 kB / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003387/0.5846, allocations: 382.6 kB / 0.9553 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.5847, allocations: 0 / 0.9553 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.889e-05/0.5847, allocations: 3.438 kB / 0.9553 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.5847, allocations: 8.969 kB / 0.9553 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.5847, allocations: 9.266 kB / 0.9553 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.5847, allocations: 3.938 kB / 0.9553 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5847, allocations: 1.156 kB / 0.9553 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.585, allocations: 206.1 kB / 0.9555 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.935e-05/0.585, allocations: 90.06 kB / 0.9556 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.585, allocations: 1.156 kB / 0.9556 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.5851, allocations: 11.59 kB / 0.9556 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.211e-05/0.5851, allocations: 6.234 kB / 0.9556 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.5852, allocations: 2.781 kB / 0.9556 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.188e-05/0.5852, allocations: 100.2 kB / 0.9557 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5852, allocations: 1.219 kB / 0.9557 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002821/0.5855, allocations: 32.06 kB / 0.9557 GB, free: 3.922 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005762/0.5861, allocations: 0.8067 MB / 0.9565 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002144/0.5863, allocations: 78.22 kB / 0.9566 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5863, allocations: 4.125 kB / 0.9566 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.712e-05/0.5864, allocations: 32.17 kB / 0.9566 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.5867, allocations: 9.5 kB / 0.9566 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.5879, allocations: 1.48 MB / 0.9581 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.504e-05/0.588, allocations: 0.6871 MB / 0.9587 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.267e-05/0.588, allocations: 4.406 kB / 0.9588 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/0.5881, allocations: 22.36 kB / 0.9588 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.5881, allocations: 4 kB / 0.9588 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.6059, allocations: 2.609 MB / 0.9613 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/8.062, allocations: 10.84 kB / 0.9613 GB, free: 15.65 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv. Warning: Get data of variable win.occ from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv failed! Error: Could not read variable win.on in file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv. Warning: Get data of variable win.on from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:time,win.TOut,win.p,TOut.amplitude,TOut.f,TOut.offset