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.001272/0.001272, allocations: 91.45 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.001788/0.001788, 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.401/1.401, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.663/2.663, allocations: 409.4 MB / 0.684 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004818/0.0004822, allocations: 8 kB / 0.8378 GB, free: 6.473 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8224/0.8229, allocations: 146.8 MB / 0.9812 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0008723/0.8238, allocations: 412.2 kB / 0.9815 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.8251, allocations: 1.166 MB / 0.9827 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.871e-05/0.8252, allocations: 0 / 0.9827 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.8252, allocations: 3.938 kB / 0.9827 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.868e-05/0.8253, allocations: 11.92 kB / 0.9827 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.8259, allocations: 201.2 kB / 0.9829 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001625/0.826, allocations: 139.7 kB / 0.983 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.479e-05/0.8261, allocations: 7.938 kB / 0.983 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.444e-05/0.8262, allocations: 63.88 kB / 0.9831 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.8264, allocations: 51.86 kB / 0.9831 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.8264, allocations: 12 kB / 0.9832 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.991e-05/0.8265, allocations: 20 kB / 0.9832 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.395e-05/0.8265, allocations: 15.91 kB / 0.9832 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.617e-05/0.8266, allocations: 41.7 kB / 0.9832 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.8267, allocations: 102 kB / 0.9833 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.8267, allocations: 4 kB / 0.9833 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.364e-06/0.8267, allocations: 0 / 0.9833 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.8267, allocations: 0 / 0.9833 GB, free: 3.98 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.0004745/0.8272, allocations: 410.6 kB / 0.9837 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.8273, allocations: 16.03 kB / 0.9837 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.95e-05/0.8273, allocations: 30.56 kB / 0.9838 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/0.8274, allocations: 8 kB / 0.9838 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.8275, allocations: 166.9 kB / 0.9839 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.8276, allocations: 15.92 kB / 0.9839 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.8276, allocations: 12 kB / 0.984 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001117/0.8277, allocations: 49.62 kB / 0.984 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.8277, allocations: 7.984 kB / 0.984 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.8277, allocations: 0 / 0.984 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.8277, allocations: 3.938 kB / 0.984 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.014e-05/0.8278, allocations: 16 kB / 0.984 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004907/0.8283, allocations: 352.8 kB / 0.9844 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.34e-05/0.8284, allocations: 46.45 kB / 0.9844 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.651e-05/0.8284, allocations: 12.86 kB / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-06/0.8284, allocations: 0 / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.8286, allocations: 103.4 kB / 0.9845 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 2.745e-06/0.8286, allocations: 0 / 0.9845 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0002566/0.8289, allocations: 121.5 kB / 0.9846 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.8289, allocations: 59.34 kB / 0.9847 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.514e-05/0.829, allocations: 125.8 kB / 0.9848 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.8291, allocations: 29.7 kB / 0.9848 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/0.8291, allocations: 96.36 kB / 0.9849 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.8292, allocations: 15.75 kB / 0.9849 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-05/0.8292, allocations: 8 kB / 0.985 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.8293, allocations: 322.8 kB / 0.9853 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.8294, allocations: 59.97 kB / 0.9853 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.8296, allocations: 107.8 kB / 0.9854 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.8297, allocations: 123.4 kB / 0.9855 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.8297, allocations: 0 / 0.9855 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004178/0.8302, allocations: 284.7 kB / 0.9858 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.01e-05/0.8302, allocations: 67.39 kB / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.8302, allocations: 0 / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.8302, allocations: 4 kB / 0.9859 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.069e-05/0.8303, allocations: 12.16 kB / 0.9859 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.8303, allocations: 7.938 kB / 0.9859 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.8307, allocations: 79.83 kB / 0.986 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.8307, allocations: 11.98 kB / 0.986 GB, free: 0.9492 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 9.68e-05/0.8308, allocations: 122.2 kB / 0.9861 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/0.8308, allocations: 11.86 kB / 0.9861 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.649e-05/0.8309, allocations: 12.38 kB / 0.9861 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.8309, allocations: 0 / 0.9861 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.8309, allocations: 3.938 kB / 0.9861 GB, free: 0.7891 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.8309, allocations: 4 kB / 0.9861 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.8312, allocations: 366.4 kB / 0.9865 GB, free: 380 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-06/0.8312, allocations: 0 / 0.9865 GB, free: 380 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.518e-06/0.8312, allocations: 0 / 0.9865 GB, free: 380 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.8312, allocations: 4 kB / 0.9865 GB, free: 376 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.8312, allocations: 0 / 0.9865 GB, free: 376 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.8313, allocations: 3.938 kB / 0.9865 GB, free: 372 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.8313, allocations: 3.938 kB / 0.9865 GB, free: 368 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001933/0.8315, allocations: 207.3 kB / 0.9867 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.8315, allocations: 81.11 kB / 0.9868 GB, free: 44 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.8315, allocations: 4 kB / 0.9868 GB, free: 40 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.251e-05/0.8316, allocations: 4 kB / 0.9868 GB, free: 36 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.219e-05/0.8316, allocations: 7.984 kB / 0.9868 GB, free: 28 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.8316, allocations: 4 kB / 0.9868 GB, free: 24 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.009e-05/0.8317, allocations: 91.27 kB / 0.9869 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8317, allocations: 0 / 0.9869 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000278/0.832, allocations: 39.91 kB / 0.9869 GB, free: 15.89 MB / 0.7481 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.0004587/0.8325, allocations: 0.7361 MB / 0.9876 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000337/0.8328, allocations: 266.5 kB / 0.9879 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8328, allocations: 320 / 0.9879 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 5.992e-05/0.8329, allocations: 32 kB / 0.9879 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.8332, allocations: 17.67 kB / 0.9879 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.8344, allocations: 0.7405 MB / 0.9887 GB, free: 14 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.8346, allocations: 0.6888 MB / 0.9893 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.408e-05/0.8346, allocations: 8.938 kB / 0.9893 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.335e-05/0.8347, allocations: 23.44 kB / 0.9894 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of SimCode: time 3.4e-07/0.8347, allocations: 3.938 kB / 0.9894 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.8478, allocations: 2.699 MB / 0.992 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.8481, allocations: 202 kB / 0.9922 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.674, allocations: 0 / 0.9922 GB, free: 10.47 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