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.0009679/0.0009678, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001227/0.001227, allocations: 172.7 kB / 15.95 MB, free: 208 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.394/1.394, allocations: 223.3 MB / 240 MB, free: 5.336 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.421/2.421, allocations: 390.4 MB / 0.6655 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003237, allocations: 12 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8131/0.8135, allocations: 142.3 MB / 0.9539 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.000922/0.8144, allocations: 406 kB / 0.9543 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001533/0.816, allocations: 1.167 MB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.597e-05/0.8161, allocations: 0 / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.934e-05/0.8161, allocations: 5.062 kB / 0.9554 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.139e-05/0.8162, allocations: 12.92 kB / 0.9554 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.8169, allocations: 197.3 kB / 0.9556 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.8171, allocations: 135.7 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.515e-05/0.8172, allocations: 4.406 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.8173, allocations: 67.25 kB / 0.9558 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.8174, allocations: 50.52 kB / 0.9558 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.079e-05/0.8175, allocations: 12.84 kB / 0.9559 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.376e-05/0.8176, allocations: 18.89 kB / 0.9559 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.374e-05/0.8176, allocations: 11.61 kB / 0.9559 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.692e-05/0.8177, allocations: 41.05 kB / 0.9559 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.8178, allocations: 106.2 kB / 0.956 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.8178, allocations: 1.031 kB / 0.956 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.684e-06/0.8178, allocations: 3.938 kB / 0.956 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.8178, allocations: 0 / 0.956 GB, free: 6.422 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.0004644/0.8183, allocations: 415 kB / 0.9564 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.8184, allocations: 13.75 kB / 0.9564 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.8184, allocations: 43.36 kB / 0.9565 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.439e-05/0.8185, allocations: 7.125 kB / 0.9565 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.872e-05/0.8186, allocations: 170 kB / 0.9567 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.8186, allocations: 5.844 kB / 0.9567 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.8187, allocations: 12.27 kB / 0.9567 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.8188, allocations: 52.94 kB / 0.9567 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.8188, allocations: 0 / 0.9567 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.8188, allocations: 7.938 kB / 0.9567 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.8188, allocations: 1.438 kB / 0.9567 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.982e-05/0.8189, allocations: 14.41 kB / 0.9567 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004905/0.8194, allocations: 353.2 kB / 0.9571 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.868e-05/0.8195, allocations: 29.11 kB / 0.9571 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.937e-05/0.8195, allocations: 27.81 kB / 0.9571 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.131e-06/0.8195, allocations: 3.953 kB / 0.9571 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001744/0.8197, allocations: 104.9 kB / 0.9572 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.8197, allocations: 0 / 0.9572 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002685/0.82, allocations: 121.4 kB / 0.9574 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.82, allocations: 52.84 kB / 0.9574 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.165e-05/0.8201, allocations: 120.1 kB / 0.9575 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.8201, allocations: 34.11 kB / 0.9575 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.576e-05/0.8202, allocations: 92.8 kB / 0.9576 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.592e-05/0.8202, allocations: 22.81 kB / 0.9577 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.856e-05/0.8202, allocations: 3.844 kB / 0.9577 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.002e-05/0.8203, allocations: 320.3 kB / 0.958 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.8204, allocations: 68.34 kB / 0.958 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.8206, allocations: 108.7 kB / 0.9581 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.8207, allocations: 117.2 kB / 0.9582 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.8207, allocations: 0 / 0.9582 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003954/0.8211, allocations: 291.6 kB / 0.9585 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.8212, allocations: 70.11 kB / 0.9586 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.8212, allocations: 1.781 kB / 0.9586 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.8212, allocations: 1.938 kB / 0.9586 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.844e-05/0.8213, allocations: 11.72 kB / 0.9586 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.8213, allocations: 3.5 kB / 0.9586 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.8216, allocations: 84.64 kB / 0.9587 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.8217, allocations: 9.625 kB / 0.9587 GB, free: 3.918 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 8.251e-05/0.8217, allocations: 131.3 kB / 0.9588 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.8218, allocations: 12.05 kB / 0.9588 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.829e-05/0.8218, allocations: 7.812 kB / 0.9588 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.8218, allocations: 0 / 0.9588 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.8218, allocations: 0 / 0.9588 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.8218, allocations: 4 kB / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002699/0.8221, allocations: 360.6 kB / 0.9592 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.8221, allocations: 5.359 kB / 0.9592 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.006e-05/0.8221, allocations: 1.531 kB / 0.9592 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.8221, allocations: 0 / 0.9592 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.8221, allocations: 1.375 kB / 0.9592 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.8222, allocations: 1.375 kB / 0.9592 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.8222, allocations: 4 kB / 0.9592 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.8223, allocations: 201 kB / 0.9594 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.8224, allocations: 86.59 kB / 0.9595 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.8224, allocations: 0.7812 kB / 0.9595 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.283e-05/0.8224, allocations: 5.266 kB / 0.9595 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.673e-05/0.8225, allocations: 11.02 kB / 0.9595 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.8225, allocations: 3.656 kB / 0.9595 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.255e-05/0.8225, allocations: 99.62 kB / 0.9596 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8225, allocations: 3.938 kB / 0.9596 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002855/0.8228, allocations: 37.03 kB / 0.9596 GB, free: 3.027 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.0003931/0.8232, allocations: 0.7371 MB / 0.9604 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003631/0.8236, allocations: 252.1 kB / 0.9606 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.8236, allocations: 4.312 kB / 0.9606 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.603e-05/0.8237, allocations: 36.55 kB / 0.9606 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.824, allocations: 15.36 kB / 0.9606 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.8251, allocations: 0.742 MB / 0.9614 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001433/0.8253, allocations: 0.693 MB / 0.962 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.163e-05/0.8253, allocations: 10.16 kB / 0.9621 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.654e-05/0.8254, allocations: 19.56 kB / 0.9621 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of SimCode: time 5.21e-07/0.8254, allocations: 0 / 0.9621 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.8476, allocations: 2.695 MB / 0.9647 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002607/0.8479, allocations: 189.4 kB / 0.9649 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.635, allocations: 0 / 0.9649 GB, free: 15.25 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