Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",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.006703/0.006703, allocations: 98.56 kB / 15.73 MB, free: 6.059 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.00174/0.00174, allocations: 199.7 kB / 16.68 MB, free: 5.977 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.299/1.299, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.585/2.585, allocations: 482.6 MB / 0.755 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 63.91 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2612, allocations: 162.3 MB / 1.242 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.001811/0.2631, allocations: 0.9217 MB / 1.243 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00093/0.264, allocations: 0.8819 MB / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.751e-05/0.2641, allocations: 0 / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.634e-05/0.2641, allocations: 15.8 kB / 1.244 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.336e-05/0.2642, allocations: 23.81 kB / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.2644, allocations: 43.88 kB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.2645, allocations: 127.6 kB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.2647, allocations: 53.5 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.2648, allocations: 55.77 kB / 1.244 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.815e-05/0.2649, allocations: 55.77 kB / 1.244 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.2649, allocations: 16 kB / 1.244 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.03e-05/0.2649, allocations: 12 kB / 1.244 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.953e-05/0.265, allocations: 31.91 kB / 1.244 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.56e-05/0.265, allocations: 59.66 kB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.2652, allocations: 155.3 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2652, allocations: 0 / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2652, allocations: 0 / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.708e-06/0.2652, allocations: 0 / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005621/0.2658, allocations: 438.8 kB / 1.245 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.2658, allocations: 8.031 kB / 1.245 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.317e-05/0.2659, allocations: 46.73 kB / 1.245 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/0.2659, allocations: 12.84 kB / 1.245 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.2662, allocations: 220.9 kB / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.2662, allocations: 8.375 kB / 1.245 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.2662, allocations: 7.938 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.2664, allocations: 105.6 kB / 1.245 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.2665, allocations: 7.984 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.2665, allocations: 4 kB / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2665, allocations: 4 kB / 1.245 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.2667, allocations: 59.97 kB / 1.245 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.2672, allocations: 400.6 kB / 1.245 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002382/0.2675, allocations: 90.61 kB / 1.246 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.2676, allocations: 44.81 kB / 1.246 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.2676, allocations: 0 / 1.246 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.2676, allocations: 34.5 kB / 1.246 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.2676, allocations: 0 / 1.246 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003366/0.268, allocations: 133.6 kB / 1.246 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.268, allocations: 55.41 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.2681, allocations: 155.8 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.2682, allocations: 33.7 kB / 1.246 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.78e-05/0.2682, allocations: 108.2 kB / 1.246 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.2683, allocations: 23.84 kB / 1.246 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.788e-05/0.2683, allocations: 25.72 kB / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.2684, allocations: 322.8 kB / 1.246 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.747e-05/0.2685, allocations: 31.98 kB / 1.247 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.2686, allocations: 54.48 kB / 1.247 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.2688, allocations: 60.77 kB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.2688, allocations: 4.031 kB / 1.247 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002156/0.269, allocations: 113.5 kB / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2691, allocations: 8 kB / 1.247 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-06/0.2691, allocations: 0 / 1.247 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.2691, allocations: 0 / 1.247 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.515e-05/0.2692, allocations: 11.98 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.848e-06/0.2692, allocations: 0 / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.345e-05/0.2693, allocations: 15.89 kB / 1.247 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.2693, allocations: 4 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (conSysSta.onTRoo.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTOut.y,$PRE.conSysSta.onTOut.y,conSysSta.onSys) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.242e-05/0.2694, allocations: 130.3 kB / 1.247 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.2694, allocations: 11.89 kB / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.084e-05/0.2694, allocations: 16.72 kB / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2694, allocations: 0 / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.2695, allocations: 0 / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2695, allocations: 0 / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.2697, allocations: 213.5 kB / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2697, allocations: 0 / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.73e-05/0.2698, allocations: 23.86 kB / 1.247 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.2698, allocations: 0 / 1.247 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.2698, allocations: 7.938 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2698, allocations: 4.281 kB / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-07/0.2698, allocations: 0 / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002378/0.27, allocations: 191.5 kB / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.2701, allocations: 96.89 kB / 1.247 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.2701, allocations: 8 kB / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.2702, allocations: 7.984 kB / 1.247 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.2703, allocations: 19.97 kB / 1.247 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.2703, allocations: 0 / 1.247 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.437e-05/0.2704, allocations: 119.2 kB / 1.248 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2704, allocations: 4 kB / 1.248 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002134/0.2706, allocations: 19.94 kB / 1.248 GB, free: 3.594 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (conSysSta.onSys,conSysSta.onTOut.y,conSysSta.onTRoo.y) * Number of discrete states: 2 (conSysSta.onTRoo.y,conSysSta.onTOut.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0005186/0.2711, allocations: 0.7366 MB / 1.248 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.2714, allocations: 75.91 kB / 1.248 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2714, allocations: 0 / 1.248 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.484e-05/0.2715, allocations: 43.95 kB / 1.248 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.2717, allocations: 12 kB / 1.248 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.2734, allocations: 1.65 MB / 1.25 GB, free: 0.9688 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.2737, allocations: 0.7041 MB / 1.251 GB, free: 244 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.697e-05/0.2738, allocations: 4.672 kB / 1.251 GB, free: 240 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.217e-05/0.2739, allocations: 43.41 kB / 1.251 GB, free: 196 kB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.2739, allocations: 0 / 1.251 GB, free: 196 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8593/1.133, allocations: 2.665 MB / 1.253 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/8.848, allocations: 8.469 kB / 1.253 GB, free: 14.39 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches