Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.Integers.Validation.OnCounter,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",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.001158/0.001158, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001365/0.001365, allocations: 177.3 kB / 15.95 MB, free: 216 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.384/1.384, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.363/2.363, allocations: 390.3 MB / 0.6653 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003541, allocations: 12 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.752/0.7524, allocations: 142.3 MB / 0.9536 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001026/0.7534, allocations: 400.5 kB / 0.954 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001809/0.7553, allocations: 1.145 MB / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.835e-05/0.7553, allocations: 0 / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.22e-05/0.7554, allocations: 5.281 kB / 0.9551 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.7555, allocations: 10.62 kB / 0.9551 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008159/0.7564, allocations: 193 kB / 0.9553 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.7566, allocations: 87.38 kB / 0.9554 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.7567, allocations: 9.422 kB / 0.9554 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.7569, allocations: 63 kB / 0.9555 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.757, allocations: 49.92 kB / 0.9555 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.7571, allocations: 13.53 kB / 0.9555 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-05/0.7572, allocations: 21.36 kB / 0.9555 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.862e-05/0.7572, allocations: 12.2 kB / 0.9555 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.305e-05/0.7573, allocations: 36.55 kB / 0.9556 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.7575, allocations: 111 kB / 0.9557 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.7575, allocations: 5 kB / 0.9557 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.976e-06/0.7575, allocations: 0 / 0.9557 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.7575, allocations: 0 / 0.9557 GB, free: 6.512 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006728/0.7582, allocations: 419.2 kB / 0.9561 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 7.457e-05/0.7583, allocations: 8.719 kB / 0.9561 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.334e-05/0.7584, allocations: 35.69 kB / 0.9561 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.7584, allocations: 7.719 kB / 0.9561 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.7586, allocations: 170.6 kB / 0.9563 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.7587, allocations: 12.08 kB / 0.9563 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.743e-05/0.7587, allocations: 13.25 kB / 0.9563 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.7589, allocations: 47.95 kB / 0.9564 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.7589, allocations: 0 / 0.9564 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.7589, allocations: 5.141 kB / 0.9564 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.7589, allocations: 0 / 0.9564 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.766e-05/0.759, allocations: 11.94 kB / 0.9564 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006705/0.7597, allocations: 356.6 kB / 0.9567 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.318e-05/0.7598, allocations: 36.69 kB / 0.9568 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.7598, allocations: 1.125 kB / 0.9568 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.76, allocations: 104.7 kB / 0.9569 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.76, allocations: 0 / 0.9569 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0003935/0.7604, allocations: 116.5 kB / 0.957 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.7605, allocations: 61.67 kB / 0.957 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.7606, allocations: 127.1 kB / 0.9572 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.648e-05/0.7607, allocations: 29.73 kB / 0.9572 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.991e-05/0.7608, allocations: 93.77 kB / 0.9573 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.7608, allocations: 18.75 kB / 0.9573 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.7608, allocations: 3.938 kB / 0.9573 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.761, allocations: 329.3 kB / 0.9576 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.7611, allocations: 60.41 kB / 0.9577 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.7613, allocations: 108 kB / 0.9578 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.7615, allocations: 122.2 kB / 0.9579 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.7615, allocations: 0 / 0.9579 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005077/0.762, allocations: 286.8 kB / 0.9582 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.9e-05/0.7621, allocations: 75.16 kB / 0.9582 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.7621, allocations: 0 / 0.9582 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.181e-05/0.7622, allocations: 3.281 kB / 0.9582 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.363e-05/0.7622, allocations: 3.406 kB / 0.9582 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.7623, allocations: 1.625 kB / 0.9582 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.7627, allocations: 83.38 kB / 0.9583 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.7627, allocations: 15.11 kB / 0.9583 GB, free: 4.031 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001251/0.7629, allocations: 128.5 kB / 0.9585 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.7629, allocations: 12.45 kB / 0.9585 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.45e-05/0.7629, allocations: 13.48 kB / 0.9585 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.7629, allocations: 1 kB / 0.9585 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.7629, allocations: 0 / 0.9585 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.763, allocations: 1.031 kB / 0.9585 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.7633, allocations: 362 kB / 0.9588 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.7633, allocations: 0 / 0.9588 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.164e-05/0.7633, allocations: 9.781 kB / 0.9588 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.7633, allocations: 0 / 0.9588 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.7633, allocations: 1.75 kB / 0.9588 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7633, allocations: 0 / 0.9588 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.7634, allocations: 3.938 kB / 0.9588 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.7636, allocations: 192.8 kB / 0.959 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.7636, allocations: 87.69 kB / 0.9591 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.7637, allocations: 5.078 kB / 0.9591 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.189e-05/0.7637, allocations: 3.938 kB / 0.9591 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.7638, allocations: 11.77 kB / 0.9591 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.7638, allocations: 6.875 kB / 0.9591 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.608e-05/0.7639, allocations: 92.7 kB / 0.9592 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7639, allocations: 192 / 0.9592 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000288/0.7642, allocations: 32.88 kB / 0.9593 GB, free: 3.152 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: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * 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.0004707/0.7646, allocations: 0.744 MB / 0.96 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003546/0.765, allocations: 251.8 kB / 0.9602 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.765, allocations: 4 kB / 0.9602 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.455e-05/0.7651, allocations: 36.27 kB / 0.9603 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.7653, allocations: 19.81 kB / 0.9603 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008686/0.7662, allocations: 1.317 MB / 0.9616 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001691/0.7664, allocations: 0.6946 MB / 0.9622 GB, free: 188 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.209e-05/0.7664, allocations: 5.359 kB / 0.9623 GB, free: 188 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.7665, allocations: 23.81 kB / 0.9623 GB, free: 168 kB / 0.7169 GB Notification: Performance of SimCode: time 6.82e-07/0.7665, allocations: 0 / 0.9623 GB, free: 168 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01434/0.7808, allocations: 2.667 MB / 0.9649 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.7811, allocations: 186.1 kB / 0.9651 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.467, allocations: 1.5 kB / 0.9651 GB, free: 14.63 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat does not exist to compare? outputFormat=mat