Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_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.001328/0.001328, allocations: 99.7 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.001501/0.001501, 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 2.053/2.053, 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 10.0.0-master/package.mo): time 3.465/3.465, allocations: 409.2 MB / 0.6838 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004184/0.0004185, allocations: 8 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.219/1.22, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001742/1.222, allocations: 412.3 kB / 0.9813 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002697/1.224, allocations: 1.131 MB / 0.9824 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.789e-05/1.224, allocations: 0 / 0.9824 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.906e-05/1.224, allocations: 3.938 kB / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001103/1.225, allocations: 19.97 kB / 0.9824 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001209/1.226, allocations: 193.2 kB / 0.9826 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/1.226, allocations: 83.89 kB / 0.9827 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/1.226, allocations: 7.984 kB / 0.9827 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/1.226, allocations: 63.88 kB / 0.9827 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/1.227, allocations: 47.88 kB / 0.9828 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.01e-05/1.227, allocations: 12 kB / 0.9828 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/1.227, allocations: 19.92 kB / 0.9828 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.639e-05/1.227, allocations: 19.91 kB / 0.9828 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.053e-05/1.227, allocations: 37.7 kB / 0.9829 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002666/1.227, allocations: 102 kB / 0.983 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/1.227, allocations: 0 / 0.983 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.116e-06/1.227, allocations: 0 / 0.983 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.101e-06/1.227, allocations: 4 kB / 0.983 GB, free: 4.148 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007893/1.228, allocations: 410.6 kB / 0.9834 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.352e-05/1.228, allocations: 12.03 kB / 0.9834 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.302e-05/1.228, allocations: 38.55 kB / 0.9834 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.526e-05/1.228, allocations: 8 kB / 0.9834 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/1.229, allocations: 174.9 kB / 0.9836 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/1.229, allocations: 4 kB / 0.9836 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.254e-05/1.229, allocations: 8 kB / 0.9836 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/1.229, allocations: 57.62 kB / 0.9836 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/1.229, allocations: 0 / 0.9836 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/1.229, allocations: 3.984 kB / 0.9837 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/1.229, allocations: 0 / 0.9837 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.448e-05/1.229, allocations: 15.98 kB / 0.9837 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008233/1.23, allocations: 352.8 kB / 0.984 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/1.23, allocations: 46.45 kB / 0.984 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/1.23, allocations: 0 / 0.984 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/1.23, allocations: 95.3 kB / 0.9841 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 2.324e-06/1.23, allocations: 0 / 0.9841 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0004846/1.231, allocations: 129.5 kB / 0.9843 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/1.231, allocations: 55.41 kB / 0.9843 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/1.231, allocations: 125.7 kB / 0.9844 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.188e-05/1.231, allocations: 33.7 kB / 0.9845 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/1.231, allocations: 92.36 kB / 0.9846 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.027e-05/1.231, allocations: 19.75 kB / 0.9846 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/1.231, allocations: 7.984 kB / 0.9846 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001724/1.232, allocations: 322.8 kB / 0.9849 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/1.232, allocations: 63.95 kB / 0.985 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002988/1.232, allocations: 103.4 kB / 0.9851 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/1.233, allocations: 123.3 kB / 0.9852 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/1.233, allocations: 4 kB / 0.9852 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008371/1.233, allocations: 276.8 kB / 0.9854 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.89e-05/1.234, allocations: 71.39 kB / 0.9855 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/1.234, allocations: 0 / 0.9855 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/1.234, allocations: 4 kB / 0.9855 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.696e-05/1.234, allocations: 8 kB / 0.9855 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/1.234, allocations: 8.078 kB / 0.9855 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007094/1.234, allocations: 83.84 kB / 0.9856 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-05/1.235, allocations: 15.98 kB / 0.9856 GB, free: 1.133 MB / 0.7325 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.0001988/1.235, allocations: 117.8 kB / 0.9857 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/1.235, allocations: 15.86 kB / 0.9857 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/1.235, allocations: 4.375 kB / 0.9857 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/1.235, allocations: 4 kB / 0.9858 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/1.235, allocations: 384 / 0.9858 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.235, allocations: 3.984 kB / 0.9858 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006091/1.235, allocations: 370.3 kB / 0.9861 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/1.236, allocations: 0 / 0.9861 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.993e-05/1.236, allocations: 3.938 kB / 0.9861 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/1.236, allocations: 0 / 0.9861 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/1.236, allocations: 8 kB / 0.9861 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/1.236, allocations: 0 / 0.9861 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/1.236, allocations: 3.984 kB / 0.9861 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/1.236, allocations: 199.4 kB / 0.9863 GB, free: 340 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.239e-05/1.236, allocations: 85.06 kB / 0.9864 GB, free: 236 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/1.236, allocations: 3.938 kB / 0.9864 GB, free: 232 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.123e-05/1.236, allocations: 0 / 0.9864 GB, free: 232 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.711e-05/1.236, allocations: 7.984 kB / 0.9864 GB, free: 224 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/1.236, allocations: 8 kB / 0.9864 GB, free: 216 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.456e-05/1.236, allocations: 91.27 kB / 0.9865 GB, free: 124 kB / 0.7325 GB Notification: Performance of sort global known variables: time 3.4e-07/1.236, allocations: 0 / 0.9865 GB, free: 124 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005051/1.237, allocations: 35.91 kB / 0.9865 GB, free: 88 kB / 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: 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.0008461/1.238, allocations: 0.7428 MB / 0.9873 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005538/1.238, allocations: 258.9 kB / 0.9875 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/1.238, allocations: 0 / 0.9875 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.571e-05/1.239, allocations: 32.25 kB / 0.9875 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/1.239, allocations: 19.98 kB / 0.9876 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/1.24, allocations: 1.31 MB / 0.9888 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/1.241, allocations: 0.6926 MB / 0.9895 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.054e-05/1.241, allocations: 8.656 kB / 0.9895 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.887e-05/1.241, allocations: 19.44 kB / 0.9895 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of SimCode: time 4.6e-07/1.241, allocations: 0 / 0.9895 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/1.259, allocations: 2.671 MB / 0.9922 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/1.26, allocations: 198.8 kB / 0.9923 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/3.612, allocations: 0 / 0.9923 GB, free: 10.11 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat does not exist to compare? outputFormat=mat