Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_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.007742/0.007742, allocations: 99.64 kB / 15.73 MB, free: 6.027 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.001338/0.001339, allocations: 186.2 kB / 16.67 MB, free: 5.969 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.168 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.636/2.636, allocations: 390.2 MB / 0.6648 GB, free: 152 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 66.23 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3265, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002632/0.3291, allocations: 0.8613 MB / 1.088 GB, free: 1.117 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.3304, allocations: 0.8793 MB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.3306, allocations: 0 / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 6.219e-05/0.3307, allocations: 11.86 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.3308, allocations: 19.8 kB / 1.089 GB, free: 200 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.331, allocations: 35.95 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.3312, allocations: 107.7 kB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.3314, allocations: 45.03 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.3315, allocations: 51.86 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.3317, allocations: 55.67 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/0.3317, allocations: 8 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.009e-05/0.3317, allocations: 12 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.23e-05/0.3318, allocations: 23.92 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.586e-05/0.3318, allocations: 43.73 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.332, allocations: 130.3 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.332, allocations: 0 / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.355e-06/0.332, allocations: 4 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.3321, allocations: 4 kB / 1.09 GB, free: 15.68 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009707/0.333, allocations: 455.9 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3331, allocations: 12.03 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.129e-05/0.3331, allocations: 42.73 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.3332, allocations: 16.75 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.3334, allocations: 174 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3334, allocations: 12.31 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.3334, allocations: 12.38 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.3337, allocations: 94.14 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3337, allocations: 3.938 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.3337, allocations: 4 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.3337, allocations: 4 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.3339, allocations: 63.95 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007948/0.3347, allocations: 412.3 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.3349, allocations: 58.56 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.407e-05/0.335, allocations: 32.97 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.335, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.3351, allocations: 34.56 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 9.22e-07/0.3351, allocations: 0 / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0003826/0.3355, allocations: 113.5 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.3355, allocations: 59.34 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.3357, allocations: 160.8 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.3357, allocations: 25.7 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.627e-05/0.3358, allocations: 100.1 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.3358, allocations: 15.95 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.182e-05/0.3358, allocations: 21.7 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.336, allocations: 318.8 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.3361, allocations: 35.97 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.329e-05/0.3362, allocations: 27.98 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.3363, allocations: 60.69 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3363, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002283/0.3366, allocations: 93.52 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.3366, allocations: 5.875 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3366, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3366, allocations: 4 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.3367, allocations: 11.98 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3368, allocations: 3.938 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.3369, allocations: 35.81 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.337, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 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 (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 prepare postOptimizeDAE: time 0.0001177/0.3371, allocations: 123 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.939e-05/0.3371, allocations: 11.89 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/0.3372, allocations: 16.31 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.3372, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3372, allocations: 3.938 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3372, allocations: 4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.3374, allocations: 193.9 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.3374, allocations: 0 / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.863e-05/0.3375, allocations: 15.98 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3375, allocations: 0 / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.3376, allocations: 8 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3376, allocations: 0 / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3376, allocations: 3.938 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002642/0.3378, allocations: 179.4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/0.3379, allocations: 85.02 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.3379, allocations: 4 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3382, allocations: 23.97 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.471e-05/0.3382, allocations: 27.84 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.403e-06/0.3382, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.686e-05/0.3383, allocations: 117.3 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3383, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002447/0.3386, allocations: 15.94 kB / 1.093 GB, free: 12.07 MB / 0.8575 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 (5): * Single equations (assignments): 5 * 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.0005634/0.3392, allocations: 0.7279 MB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002591/0.3394, allocations: 63.91 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3395, allocations: 4 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.3396, allocations: 35.97 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.34, allocations: 15.88 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.3419, allocations: 1.594 MB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.3422, allocations: 0.7002 MB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.779e-05/0.3423, allocations: 11.97 kB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/0.3424, allocations: 23.44 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of SimCode: time 4.91e-07/0.3424, allocations: 0 / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.3646, allocations: 2.803 MB / 1.099 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.538/8.903, allocations: 11.92 kB / 1.099 GB, free: 6.078 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,conSysSta.TRoo,conSysSta.TRooSet,conSysSta.TOut,conSysSta.TOutLow,conSysSta.onSys Variables in the result:TOut.amplitude,TOut.freqHz,TOut.offset,TOut.phase,TOut.startTime,TOut.y,TRoo.amplitude,TRoo.freqHz,TRoo.offset,TRoo.phase,TRoo.startTime,TRoo.y,conSysSta.TOut,conSysSta.TOutLow,conSysSta.TRoo,conSysSta.TRooSet,conSysSta.TSetOut.k,conSysSta.TSetOut.y,conSysSta.TSetRoo.k,conSysSta.TSetRoo.y,conSysSta.and1.u1,conSysSta.and1.u2,conSysSta.and1.y,conSysSta.dTRoo,conSysSta.onSys,conSysSta.onTOut.bandwidth,conSysSta.onTOut.pre_y_start,conSysSta.onTOut.reference,conSysSta.onTOut.u,conSysSta.onTOut.y,conSysSta.onTRoo.bandwidth,conSysSta.onTRoo.pre_y_start,conSysSta.onTRoo.reference,conSysSta.onTRoo.u,conSysSta.onTRoo.y,time