Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.361/2.361, allocations: 390.3 MB / 402.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 221.3 MB / 0.7915 GB, free: 5.461 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 91.62 kB / 0.9317 GB, free: 5.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.349e-05/4.365e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2878, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9715/1.259, allocations: 150.5 MB / 1.366 GB, free: 3.531 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/1.26, allocations: 70.58 kB / 1.366 GB, free: 3.496 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007693/1.267, allocations: 2.593 MB / 1.368 GB, free: 1.258 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.705e-06/1.267, allocations: 0 / 1.368 GB, free: 1.258 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.877e-06/1.267, allocations: 4 kB / 1.368 GB, free: 1.254 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000614/1.268, allocations: 403.9 kB / 1.369 GB, free: 0.8164 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 6.692e-05/1.268, allocations: 8.031 kB / 1.369 GB, free: 0.8086 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.818e-05/1.268, allocations: 41.73 kB / 1.369 GB, free: 0.7617 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.314e-05/1.268, allocations: 8 kB / 1.369 GB, free: 0.7539 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001675/1.268, allocations: 171 kB / 1.369 GB, free: 0.5469 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/1.268, allocations: 4 kB / 1.369 GB, free: 0.543 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/1.268, allocations: 4 kB / 1.369 GB, free: 0.5391 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/1.269, allocations: 60.28 kB / 1.369 GB, free: 496 kB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/1.269, allocations: 4 kB / 1.369 GB, free: 492 kB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/1.269, allocations: 4 kB / 1.369 GB, free: 488 kB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/1.269, allocations: 0 / 1.369 GB, free: 488 kB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.36e-05/1.269, allocations: 19.12 kB / 1.369 GB, free: 472 kB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005982/1.269, allocations: 322.7 kB / 1.369 GB, free: 128 kB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/1.27, allocations: 46.31 kB / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.601e-05/1.27, allocations: 15.92 kB / 1.369 GB, free: 64 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/1.27, allocations: 0 / 1.369 GB, free: 64 kB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/1.27, allocations: 75.09 kB / 1.37 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/1.27, allocations: 0 / 1.37 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002532/1.27, allocations: 98.72 kB / 1.37 GB, free: 15.89 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/1.27, allocations: 55.41 kB / 1.37 GB, free: 15.83 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/1.27, allocations: 111.2 kB / 1.37 GB, free: 15.72 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/1.27, allocations: 29.7 kB / 1.37 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.479e-05/1.27, allocations: 92.11 kB / 1.37 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/1.27, allocations: 19.12 kB / 1.37 GB, free: 15.57 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.25e-05/1.271, allocations: 0 / 1.37 GB, free: 15.57 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001331/1.271, allocations: 322.6 kB / 1.37 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.71e-05/1.271, allocations: 34.38 kB / 1.37 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/1.271, allocations: 67.98 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/1.271, allocations: 71.41 kB / 1.37 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.271, allocations: 0 / 1.37 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003001/1.271, allocations: 164.2 kB / 1.371 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.888e-05/1.271, allocations: 37.69 kB / 1.371 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/1.271, allocations: 0 / 1.371 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/1.271, allocations: 3.938 kB / 1.371 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/1.271, allocations: 24 kB / 1.371 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/1.272, allocations: 0 / 1.371 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/1.272, allocations: 46.5 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/1.272, allocations: 11.98 kB / 1.371 GB, free: 14.83 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/1.272, allocations: 113.7 kB / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.271e-05/1.272, allocations: 4 kB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/1.272, allocations: 87.86 kB / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/1.272, allocations: 0 / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/1.272, allocations: 3.953 kB / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/1.272, allocations: 0 / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003255/1.272, allocations: 335.3 kB / 1.371 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/1.272, allocations: 4 kB / 1.371 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.503e-05/1.273, allocations: 20.39 kB / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/1.273, allocations: 0 / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/1.273, allocations: 4 kB / 1.371 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/1.273, allocations: 3.953 kB / 1.371 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/1.273, allocations: 0 / 1.371 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000167/1.273, allocations: 186.9 kB / 1.371 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/1.273, allocations: 92.95 kB / 1.372 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/1.273, allocations: 0 / 1.372 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.728e-05/1.273, allocations: 15.8 kB / 1.372 GB, free: 13.93 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/1.273, allocations: 7.938 kB / 1.372 GB, free: 13.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/1.273, allocations: 4 kB / 1.372 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.652e-05/1.273, allocations: 86.91 kB / 1.372 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.533e-06/1.273, allocations: 0 / 1.372 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002516/1.273, allocations: 39.55 kB / 1.372 GB, free: 13.8 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005023/1.274, allocations: 0.7113 MB / 1.372 GB, free: 13.08 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002284/1.274, allocations: 144.7 kB / 1.372 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.274, allocations: 0 / 1.372 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.678e-05/1.274, allocations: 26.5 kB / 1.373 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/1.274, allocations: 23.5 kB / 1.373 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004107/1.275, allocations: 140.3 kB / 1.373 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/1.275, allocations: 0.6887 MB / 1.373 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.545e-05/1.275, allocations: 8.172 kB / 1.373 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.614e-05/1.275, allocations: 14.12 kB / 1.373 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of SimCode: time 3.51e-07/1.275, allocations: 0 / 1.373 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01225/1.287, allocations: 2.1 MB / 1.375 GB, free: 10.08 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001605/1.288, allocations: 168.1 kB / 1.376 GB, free: 9.852 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.593/2.88, allocations: 0 / 1.376 GB, free: 9.852 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat does not exist to compare? outputFormat=mat