Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer",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.0007355/0.0007354, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0007737/0.0007737, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 223.2 MB / 240 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.224/2.224, allocations: 409.4 MB / 0.684 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.000295, allocations: 19.86 kB / 0.8378 GB, free: 6.488 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6003/0.6006, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.001544/0.6022, allocations: 1.171 MB / 0.9823 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006263/0.6028, allocations: 415.3 kB / 0.9827 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.391e-05/0.6029, allocations: 4 kB / 0.9827 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.491e-05/0.6029, allocations: 3.984 kB / 0.9827 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.692e-05/0.603, allocations: 3.938 kB / 0.9827 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001276/0.6031, allocations: 23.98 kB / 0.9827 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.696e-05/0.6032, allocations: 47.84 kB / 0.9828 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.307e-05/0.6033, allocations: 11.98 kB / 0.9828 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.469e-05/0.6033, allocations: 19.92 kB / 0.9828 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.949e-05/0.6034, allocations: 19.86 kB / 0.9828 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.6034, allocations: 0 / 0.9828 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.092e-05/0.6034, allocations: 4 kB / 0.9828 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.386e-05/0.6035, allocations: 7.984 kB / 0.9828 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.114e-05/0.6035, allocations: 37.64 kB / 0.9829 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 5.703e-05/0.6036, allocations: 30.19 kB / 0.9829 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.6036, allocations: 4 kB / 0.9829 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.472e-06/0.6036, allocations: 0 / 0.9829 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.256e-06/0.6036, allocations: 0 / 0.9829 GB, free: 4.449 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004161/0.604, allocations: 355.2 kB / 0.9832 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.604, allocations: 12.03 kB / 0.9832 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.188e-05/0.6041, allocations: 30.56 kB / 0.9833 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.6041, allocations: 15.89 kB / 0.9833 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.967e-05/0.6042, allocations: 167.1 kB / 0.9834 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.6042, allocations: 4 kB / 0.9834 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.6042, allocations: 7.938 kB / 0.9835 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.766e-05/0.6043, allocations: 53.64 kB / 0.9835 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.6044, allocations: 0 / 0.9835 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.6044, allocations: 11.98 kB / 0.9835 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.6044, allocations: 0 / 0.9835 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.531e-05/0.6044, allocations: 23.92 kB / 0.9835 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004097/0.6049, allocations: 316.6 kB / 0.9838 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.601e-05/0.605, allocations: 54.66 kB / 0.9839 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.705e-05/0.605, allocations: 20.84 kB / 0.9839 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.605, allocations: 8 kB / 0.9839 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.6052, allocations: 71.42 kB / 0.984 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.6052, allocations: 0 / 0.984 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0001911/0.6054, allocations: 101.5 kB / 0.9841 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.6054, allocations: 51.41 kB / 0.9841 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.427e-05/0.6055, allocations: 109.8 kB / 0.9842 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.6055, allocations: 25.7 kB / 0.9843 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.6055, allocations: 88.14 kB / 0.9843 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.6056, allocations: 27.69 kB / 0.9844 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.6056, allocations: 0 / 0.9844 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 7.907e-05/0.6057, allocations: 318.8 kB / 0.9847 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.968e-05/0.6057, allocations: 19.92 kB / 0.9847 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.621e-05/0.6057, allocations: 43.42 kB / 0.9847 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.072e-05/0.6058, allocations: 31.89 kB / 0.9848 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.6058, allocations: 0 / 0.9848 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001209/0.6059, allocations: 93.52 kB / 0.9849 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.6059, allocations: 8 kB / 0.9849 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.6059, allocations: 0 / 0.9849 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.968e-06/0.606, allocations: 0 / 0.9849 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.009e-05/0.606, allocations: 12.22 kB / 0.9849 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.606, allocations: 4 kB / 0.9849 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.082e-05/0.6061, allocations: 15.92 kB / 0.9849 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.6061, allocations: 8.031 kB / 0.9849 GB, free: 2.141 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition3,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,not1.y,$PRE.offTim1.entryTime,offTim1.entryTime,$PRE.offTim2.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 7.351e-05/0.6062, allocations: 127.7 kB / 0.985 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.6062, allocations: 3.906 kB / 0.985 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.297e-05/0.6062, allocations: 7.969 kB / 0.985 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.6063, allocations: 7.984 kB / 0.985 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.6063, allocations: 3.938 kB / 0.985 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.6063, allocations: 0 / 0.985 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003279/0.6066, allocations: 362.5 kB / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.6066, allocations: 0 / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.517e-05/0.6066, allocations: 7.938 kB / 0.9854 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.6066, allocations: 0 / 0.9854 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.6067, allocations: 4 kB / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.6067, allocations: 4 kB / 0.9854 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.6067, allocations: 0 / 0.9854 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.6068, allocations: 187.3 kB / 0.9856 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 2.987e-05/0.6068, allocations: 77.11 kB / 0.9857 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.6069, allocations: 7.984 kB / 0.9857 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.659e-05/0.6069, allocations: 8 kB / 0.9857 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.851e-05/0.607, allocations: 7.984 kB / 0.9857 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.607, allocations: 3.938 kB / 0.9857 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.399e-05/0.607, allocations: 87.27 kB / 0.9858 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.607, allocations: 0 / 0.9858 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002185/0.6073, allocations: 20 kB / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003533/0.6076, allocations: 0.7126 MB / 0.9865 GB, free: 400 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001111/0.6077, allocations: 55.86 kB / 0.9865 GB, free: 344 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.6078, allocations: 0 / 0.9865 GB, free: 344 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.743e-05/0.6078, allocations: 27.92 kB / 0.9866 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.6081, allocations: 17.47 kB / 0.9866 GB, free: 300 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006972/0.6088, allocations: 497.7 kB / 0.9871 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.609, allocations: 0.6887 MB / 0.9877 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 2.629e-05/0.609, allocations: 7.938 kB / 0.9877 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.669e-05/0.609, allocations: 19.42 kB / 0.9878 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.609, allocations: 4 kB / 0.9878 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9139/1.523, allocations: 1.462 MB / 0.9892 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/1.523, allocations: 194.1 kB / 0.9894 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.518/3.041, allocations: 0 / 0.9894 GB, free: 13.43 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Continuous.Examples.OffTimer_res.mat does not exist to compare? outputFormat=mat