Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001689/0.001689, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.2 MB / 219 MB, free: 9.145 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.000919/0.0009193, allocations: 84.59 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08627/0.08627, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.936e-05, allocations: 4 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07697/0.07701, allocations: 50.36 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3066/0.3837, allocations: 81.76 MB / 0.506 GB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.384, allocations: 80.89 kB / 0.5061 GB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01488/0.3989, allocations: 6.318 MB / 0.5122 GB, free: 9.688 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3989, allocations: 0 / 0.5122 GB, free: 9.688 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.72e-05/0.3989, allocations: 3.844 kB / 0.5122 GB, free: 9.688 MB / 330.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.0004139/0.3994, allocations: 471.8 kB / 0.5127 GB, free: 9.234 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.3994, allocations: 7.75 kB / 0.5127 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.751e-05/0.3995, allocations: 19.47 kB / 0.5127 GB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.3998, allocations: 260.7 kB / 0.513 GB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.3998, allocations: 7.859 kB / 0.513 GB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.3998, allocations: 11.59 kB / 0.513 GB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.4001, allocations: 146.2 kB / 0.5131 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.4001, allocations: 0 / 0.5131 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.4001, allocations: 3.781 kB / 0.5131 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4001, allocations: 0 / 0.5131 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.755e-05/0.4002, allocations: 33.81 kB / 0.5132 GB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003776/0.4006, allocations: 369.8 kB / 0.5135 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.4007, allocations: 108.2 kB / 0.5136 GB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.861e-05/0.4008, allocations: 44.38 kB / 0.5137 GB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.4008, allocations: 0 / 0.5137 GB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/0.4009, allocations: 85.3 kB / 0.5137 GB, free: 8.375 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.4009, allocations: 0 / 0.5137 GB, free: 8.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002102/0.4012, allocations: 108.5 kB / 0.5138 GB, free: 8.324 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.4012, allocations: 132.4 kB / 0.514 GB, free: 8.168 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.4014, allocations: 237.4 kB / 0.5142 GB, free: 8.059 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.4014, allocations: 29.48 kB / 0.5142 GB, free: 8.027 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.4015, allocations: 121.5 kB / 0.5143 GB, free: 7.934 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.4015, allocations: 23.33 kB / 0.5144 GB, free: 7.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-06/0.4015, allocations: 3.562 kB / 0.5144 GB, free: 7.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.974e-05/0.4016, allocations: 329.7 kB / 0.5147 GB, free: 7.598 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.687e-05/0.4016, allocations: 18.44 kB / 0.5147 GB, free: 7.598 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.212e-05/0.4017, allocations: 73.02 kB / 0.5148 GB, free: 7.535 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.144e-05/0.4017, allocations: 26.48 kB / 0.5148 GB, free: 7.527 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4017, allocations: 0 / 0.5148 GB, free: 7.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001329/0.4019, allocations: 116.8 kB / 0.5149 GB, free: 7.469 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.4019, allocations: 7.312 kB / 0.5149 GB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.4019, allocations: 0 / 0.5149 GB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.4019, allocations: 7.688 kB / 0.5149 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.497e-05/0.402, allocations: 10.72 kB / 0.5149 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.402, allocations: 0 / 0.5149 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.852e-05/0.4021, allocations: 18.7 kB / 0.5149 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.4021, allocations: 3.938 kB / 0.5149 GB, free: 7.457 MB / 330.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 5.271e-05/0.4022, allocations: 119.6 kB / 0.5151 GB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/0.4022, allocations: 60 kB / 0.5151 GB, free: 7.297 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001743/0.4024, allocations: 112.7 kB / 0.5152 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4024, allocations: 3.875 kB / 0.5152 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4024, allocations: 0 / 0.5152 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4025, allocations: 3.984 kB / 0.5152 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.4026, allocations: 232.1 kB / 0.5155 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.4027, allocations: 3.844 kB / 0.5155 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.319e-05/0.4027, allocations: 3.75 kB / 0.5155 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.4027, allocations: 3.875 kB / 0.5155 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.4027, allocations: 0 / 0.5155 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.4027, allocations: 3.938 kB / 0.5155 GB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4027, allocations: 11.59 kB / 0.5155 GB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001768/0.4029, allocations: 188.7 kB / 0.5157 GB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.673e-05/0.403, allocations: 115.5 kB / 0.5158 GB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.403, allocations: 7.875 kB / 0.5158 GB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.378e-05/0.4031, allocations: 7.844 kB / 0.5158 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.4032, allocations: 7.797 kB / 0.5158 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.4032, allocations: 7.688 kB / 0.5158 GB, free: 6.742 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001364/0.4033, allocations: 190.4 kB / 0.516 GB, free: 6.648 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4033, allocations: 0 / 0.516 GB, free: 6.648 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002335/0.4036, allocations: 34.38 kB / 0.516 GB, free: 6.645 MB / 330.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.0007452/0.4043, allocations: 392.5 kB / 0.5164 GB, free: 6.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001764/0.4045, allocations: 71.14 kB / 0.5165 GB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4045, allocations: 3.375 kB / 0.5165 GB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.973e-05/0.4046, allocations: 25.97 kB / 0.5165 GB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.4049, allocations: 47.06 kB / 0.5165 GB, free: 6.312 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003516/0.4052, allocations: 237.8 kB / 0.5168 GB, free: 6.156 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/0.4054, allocations: 0.7416 MB / 0.5175 GB, free: 5.426 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.861e-05/0.4055, allocations: 20.45 kB / 0.5175 GB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.097e-05/0.4055, allocations: 19.03 kB / 0.5175 GB, free: 5.41 MB / 330.7 MB Notification: Performance of SimCode: time 3e-07/0.4055, allocations: 3.812 kB / 0.5175 GB, free: 5.41 MB / 330.7 MB Notification: Performance of Templates: time 0.004533/0.4101, allocations: 2.323 MB / 0.5198 GB, free: 4.238 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches