Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.0007397/0.0007397, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00501/0.00501, allocations: 170.1 kB / 16.27 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.318/1.318, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.355/2.355, allocations: 390.9 MB / 0.6664 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003257, allocations: 8 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7054/0.7057, allocations: 142.4 MB / 0.9552 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0007849/0.7065, allocations: 408.7 kB / 0.9556 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.7076, allocations: 1.041 MB / 0.9566 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.191e-05/0.7077, allocations: 1.312 kB / 0.9566 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.632e-05/0.7077, allocations: 3.938 kB / 0.9566 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.024e-05/0.7077, allocations: 9.328 kB / 0.9566 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.708, allocations: 32.75 kB / 0.9566 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.323e-05/0.7081, allocations: 55.48 kB / 0.9567 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.798e-05/0.7081, allocations: 13.03 kB / 0.9567 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.668e-05/0.7082, allocations: 11.27 kB / 0.9567 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.027e-05/0.7083, allocations: 22.86 kB / 0.9567 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.7083, allocations: 2 kB / 0.9567 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.915e-05/0.7083, allocations: 16.77 kB / 0.9567 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.7084, allocations: 13.25 kB / 0.9568 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.627e-05/0.7084, allocations: 43.02 kB / 0.9568 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.7085, allocations: 57.02 kB / 0.9569 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.7085, allocations: 1.062 kB / 0.9569 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7086, allocations: 4 kB / 0.9569 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.7086, allocations: 0 / 0.9569 GB, free: 6.387 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.0004612/0.709, allocations: 362.2 kB / 0.9572 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.7091, allocations: 10.03 kB / 0.9572 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.241e-05/0.7091, allocations: 39.83 kB / 0.9573 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.54e-05/0.7091, allocations: 11.09 kB / 0.9573 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.768e-05/0.7092, allocations: 162.6 kB / 0.9574 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.7092, allocations: 5.75 kB / 0.9574 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.7093, allocations: 3.844 kB / 0.9574 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/0.7095, allocations: 69.28 kB / 0.9575 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.7095, allocations: 8.938 kB / 0.9575 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.7095, allocations: 0 / 0.9575 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.7095, allocations: 5.188 kB / 0.9575 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.7097, allocations: 53.42 kB / 0.9576 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003638/0.7101, allocations: 292.1 kB / 0.9578 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.7102, allocations: 59.45 kB / 0.9579 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.7103, allocations: 36.09 kB / 0.9579 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.7104, allocations: 1.625 kB / 0.9579 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000185/0.7106, allocations: 89.78 kB / 0.958 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.7106, allocations: 3.938 kB / 0.958 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003992/0.711, allocations: 136.7 kB / 0.9582 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.711, allocations: 52.75 kB / 0.9582 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.313e-05/0.7111, allocations: 105.4 kB / 0.9583 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.7111, allocations: 31.02 kB / 0.9583 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.768e-05/0.7111, allocations: 93.09 kB / 0.9584 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.7111, allocations: 22.44 kB / 0.9584 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.7112, allocations: 16.84 kB / 0.9585 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.48e-05/0.7112, allocations: 320 kB / 0.9588 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.7113, allocations: 27.67 kB / 0.9588 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.7114, allocations: 72.42 kB / 0.9589 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.7117, allocations: 103.7 kB / 0.959 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7117, allocations: 1.812 kB / 0.959 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002612/0.7119, allocations: 134.4 kB / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.7119, allocations: 5.969 kB / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.712, allocations: 1.812 kB / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.712, allocations: 1.406 kB / 0.9591 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.7121, allocations: 18.11 kB / 0.9591 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.7121, allocations: 2.531 kB / 0.9591 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.843e-05/0.7122, allocations: 11.17 kB / 0.9591 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.7122, allocations: 11.97 kB / 0.9591 GB, free: 4.25 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.823e-05/0.7123, allocations: 123.2 kB / 0.9593 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.144e-05/0.7123, allocations: 3.156 kB / 0.9593 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.7126, allocations: 128.6 kB / 0.9594 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.7126, allocations: 4 kB / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.7126, allocations: 1.906 kB / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.7126, allocations: 0 / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.713, allocations: 369.1 kB / 0.9597 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.713, allocations: 4 kB / 0.9597 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.189e-05/0.713, allocations: 13.61 kB / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.7131, allocations: 1.375 kB / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.7131, allocations: 0 / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.7131, allocations: 1.375 kB / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.7131, allocations: 0 / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.7133, allocations: 213 kB / 0.96 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.943e-05/0.7134, allocations: 86.33 kB / 0.96 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.7134, allocations: 1.812 kB / 0.96 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.664e-05/0.7135, allocations: 20.23 kB / 0.9601 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.7135, allocations: 14.61 kB / 0.9601 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.7135, allocations: 5.375 kB / 0.9601 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.758e-05/0.7136, allocations: 84.78 kB / 0.9602 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7136, allocations: 0 / 0.9602 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002334/0.7138, allocations: 15 kB / 0.9602 GB, free: 3.293 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004692/0.7143, allocations: 0.7458 MB / 0.9609 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.7146, allocations: 82.77 kB / 0.961 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7146, allocations: 0 / 0.961 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.7147, allocations: 40.66 kB / 0.961 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.7149, allocations: 12.06 kB / 0.961 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.7162, allocations: 1.448 MB / 0.9624 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.7164, allocations: 0.6837 MB / 0.9631 GB, free: 480 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.259e-05/0.7164, allocations: 8.172 kB / 0.9631 GB, free: 476 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.226e-05/0.7165, allocations: 14.75 kB / 0.9631 GB, free: 464 kB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.7165, allocations: 0 / 0.9631 GB, free: 464 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01125/0.7277, allocations: 1.518 MB / 0.9646 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002258/0.728, allocations: 216.7 kB / 0.9648 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.755/2.483, allocations: 4.688 kB / 0.9648 GB, free: 15.47 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches