Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 186.4 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 78.78 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09618/0.09618, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.427e-05/3.437e-05, allocations: 4 kB / 386 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3281, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1506/0.4788, allocations: 81.77 MB / 0.506 GB, free: 12.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003373/0.4792, allocations: 83.94 kB / 0.506 GB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02979/0.509, allocations: 6.307 MB / 0.5122 GB, free: 5.883 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5091, allocations: 0 / 0.5122 GB, free: 5.883 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.827e-05/0.5091, allocations: 4 kB / 0.5122 GB, free: 5.879 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007555/0.5099, allocations: 471.7 kB / 0.5127 GB, free: 5.367 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.5099, allocations: 8.031 kB / 0.5127 GB, free: 5.359 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.984e-05/0.51, allocations: 27.66 kB / 0.5127 GB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005782/0.5106, allocations: 265.7 kB / 0.5129 GB, free: 5.035 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.5106, allocations: 3.953 kB / 0.513 GB, free: 5.031 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.5107, allocations: 8 kB / 0.513 GB, free: 5.023 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004045/0.5111, allocations: 142.8 kB / 0.5131 GB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.5111, allocations: 7.922 kB / 0.5131 GB, free: 4.852 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.5112, allocations: 4 kB / 0.5131 GB, free: 4.848 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.5112, allocations: 0 / 0.5131 GB, free: 4.848 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.5113, allocations: 32 kB / 0.5131 GB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007493/0.5121, allocations: 366.4 kB / 0.5135 GB, free: 4.402 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002437/0.5124, allocations: 107.9 kB / 0.5136 GB, free: 4.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.5125, allocations: 46.69 kB / 0.5136 GB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.5125, allocations: 4 kB / 0.5136 GB, free: 4.211 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.5127, allocations: 75.23 kB / 0.5137 GB, free: 4.125 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.715e-06/0.5127, allocations: 0 / 0.5137 GB, free: 4.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003797/0.5131, allocations: 117.4 kB / 0.5138 GB, free: 4.004 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.5133, allocations: 132.5 kB / 0.5139 GB, free: 3.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000421/0.5137, allocations: 237.1 kB / 0.5142 GB, free: 3.605 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.5137, allocations: 25.7 kB / 0.5142 GB, free: 3.574 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.5139, allocations: 178.5 kB / 0.5144 GB, free: 3.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/0.5139, allocations: 27.83 kB / 0.5144 GB, free: 3.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.688e-06/0.5139, allocations: 4 kB / 0.5144 GB, free: 3.367 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5141, allocations: 318.9 kB / 0.5147 GB, free: 3.047 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.57e-05/0.5142, allocations: 20 kB / 0.5147 GB, free: 3.027 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.5143, allocations: 66 kB / 0.5148 GB, free: 2.941 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.512e-05/0.5144, allocations: 35.06 kB / 0.5148 GB, free: 2.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5144, allocations: 0 / 0.5148 GB, free: 2.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002635/0.5147, allocations: 109.5 kB / 0.5149 GB, free: 2.797 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.5147, allocations: 4 kB / 0.5149 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.5148, allocations: 0 / 0.5149 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.5148, allocations: 4 kB / 0.5149 GB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.5149, allocations: 8 kB / 0.5149 GB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.515, allocations: 4.25 kB / 0.5149 GB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.5151, allocations: 19.98 kB / 0.515 GB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.5151, allocations: 4 kB / 0.515 GB, free: 2.754 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001202/0.5153, allocations: 121.8 kB / 0.5151 GB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.5154, allocations: 61.5 kB / 0.5151 GB, free: 2.562 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003571/0.5158, allocations: 107.4 kB / 0.5152 GB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.5158, allocations: 4 kB / 0.5152 GB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.5158, allocations: 4.062 kB / 0.5153 GB, free: 2.445 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.5158, allocations: 3.984 kB / 0.5153 GB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.5161, allocations: 233.5 kB / 0.5155 GB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.5162, allocations: 3.938 kB / 0.5155 GB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.927e-05/0.5162, allocations: 8 kB / 0.5155 GB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.5163, allocations: 0 / 0.5155 GB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.5163, allocations: 0 / 0.5155 GB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.5163, allocations: 4 kB / 0.5155 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5163, allocations: 0 / 0.5155 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003528/0.5167, allocations: 182 kB / 0.5157 GB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.5169, allocations: 120.7 kB / 0.5158 GB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.856e-05/0.5169, allocations: 11.94 kB / 0.5158 GB, free: 1.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.5171, allocations: 4 kB / 0.5158 GB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.398e-05/0.5171, allocations: 15.91 kB / 0.5158 GB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.5172, allocations: 8 kB / 0.5158 GB, free: 1.758 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003255/0.5175, allocations: 193.4 kB / 0.516 GB, free: 1.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5175, allocations: 0 / 0.516 GB, free: 1.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003931/0.5179, allocations: 32 kB / 0.516 GB, free: 1.535 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001216/0.5191, allocations: 385 kB / 0.5164 GB, free: 1.152 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003491/0.5195, allocations: 67.86 kB / 0.5165 GB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.5195, allocations: 4.25 kB / 0.5165 GB, free: 1.082 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.645e-05/0.5196, allocations: 24 kB / 0.5165 GB, free: 1.059 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005675/0.5202, allocations: 52.66 kB / 0.5165 GB, free: 1.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007343/0.521, allocations: 266.4 kB / 0.5168 GB, free: 0.707 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.275/0.796, allocations: 0.7361 MB / 0.5175 GB, free: 85.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.7961, allocations: 22.91 kB / 0.5175 GB, free: 85.69 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/0.7962, allocations: 1.406 kB / 0.5175 GB, free: 85.69 MB / 362.7 MB Notification: Performance of Templates: time 0.00804/0.8042, allocations: 2.598 MB / 0.5201 GB, free: 85.57 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches