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.00107/0.001069, allocations: 178.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.3 MB / 213.8 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008751/0.000875, allocations: 90.58 kB / 261.8 MB, free: 1.613 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.08037/0.08037, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.607e-05/1.609e-05, allocations: 4 kB / 378.9 MB, free: 6.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2382, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3453, allocations: 81.1 MB / 0.4984 GB, free: 1.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.3456, allocations: 79.95 kB / 0.4985 GB, free: 1.062 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01625/0.3619, allocations: 6.266 MB / 0.5046 GB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3619, allocations: 3.984 kB / 0.5046 GB, free: 10.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.362, allocations: 192 / 0.5046 GB, free: 10.79 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.0005064/0.3625, allocations: 475.7 kB / 0.5051 GB, free: 10.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.3625, allocations: 12.03 kB / 0.5051 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.132e-05/0.3626, allocations: 19.72 kB / 0.5051 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.3629, allocations: 261.7 kB / 0.5054 GB, free: 9.949 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.363, allocations: 7.953 kB / 0.5054 GB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.855e-05/0.363, allocations: 4 kB / 0.5054 GB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.844e-05/0.3631, allocations: 35.98 kB / 0.5054 GB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.3633, allocations: 134.8 kB / 0.5055 GB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.3633, allocations: 0 / 0.5055 GB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3633, allocations: 0 / 0.5055 GB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3634, allocations: 0 / 0.5055 GB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.3638, allocations: 343 kB / 0.5059 GB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.3639, allocations: 100.2 kB / 0.506 GB, free: 9.242 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.283e-05/0.364, allocations: 42.7 kB / 0.506 GB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.364, allocations: 0 / 0.506 GB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/0.3641, allocations: 87.23 kB / 0.5061 GB, free: 9.094 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.3641, allocations: 3.938 kB / 0.5061 GB, free: 9.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.000218/0.3643, allocations: 101.5 kB / 0.5062 GB, free: 8.984 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.115e-05/0.3644, allocations: 140.5 kB / 0.5063 GB, free: 8.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.3646, allocations: 228.5 kB / 0.5065 GB, free: 8.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.3647, allocations: 29.7 kB / 0.5066 GB, free: 8.555 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.404e-05/0.3647, allocations: 116 kB / 0.5067 GB, free: 8.438 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.3648, allocations: 23.84 kB / 0.5067 GB, free: 8.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.157e-06/0.3648, allocations: 0 / 0.5067 GB, free: 8.414 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3649, allocations: 330.8 kB / 0.507 GB, free: 8.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.226e-05/0.3649, allocations: 20 kB / 0.507 GB, free: 8.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.875e-05/0.365, allocations: 62.02 kB / 0.5071 GB, free: 7.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.525e-05/0.365, allocations: 27.94 kB / 0.5071 GB, free: 7.953 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3651, allocations: 7.969 kB / 0.5071 GB, free: 7.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001452/0.3652, allocations: 101.4 kB / 0.5072 GB, free: 7.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3652, allocations: 8 kB / 0.5072 GB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3652, allocations: 0 / 0.5072 GB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.3653, allocations: 4 kB / 0.5072 GB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.28e-05/0.3653, allocations: 8 kB / 0.5073 GB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.3654, allocations: 3.984 kB / 0.5073 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.64e-05/0.3654, allocations: 11.91 kB / 0.5073 GB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.3654, allocations: 12.06 kB / 0.5073 GB, free: 7.793 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.0001193/0.3656, allocations: 110.1 kB / 0.5074 GB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.496e-05/0.3657, allocations: 61.48 kB / 0.5074 GB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001761/0.3658, allocations: 103.5 kB / 0.5075 GB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3659, allocations: 0 / 0.5075 GB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3659, allocations: 7.984 kB / 0.5076 GB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3659, allocations: 0 / 0.5076 GB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.366, allocations: 198.2 kB / 0.5077 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3661, allocations: 4.062 kB / 0.5077 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.365e-05/0.3661, allocations: 7.984 kB / 0.5078 GB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3661, allocations: 7.953 kB / 0.5078 GB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.3661, allocations: 128 / 0.5078 GB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.3661, allocations: 4 kB / 0.5078 GB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.3661, allocations: 7.938 kB / 0.5078 GB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.3663, allocations: 173.9 kB / 0.5079 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.778e-05/0.3664, allocations: 116.8 kB / 0.508 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.3665, allocations: 8.078 kB / 0.5081 GB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.462e-05/0.3666, allocations: 11.88 kB / 0.5081 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.3666, allocations: 7.938 kB / 0.5081 GB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.3666, allocations: 3.984 kB / 0.5081 GB, free: 6.863 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.3668, allocations: 188.5 kB / 0.5083 GB, free: 6.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3668, allocations: 4 kB / 0.5083 GB, free: 6.672 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002319/0.367, allocations: 32 kB / 0.5083 GB, free: 6.641 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.0007368/0.3678, allocations: 343.2 kB / 0.5086 GB, free: 6.305 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001519/0.3679, allocations: 63.86 kB / 0.5087 GB, free: 6.242 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3679, allocations: 4.25 kB / 0.5087 GB, free: 6.238 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.817e-05/0.368, allocations: 35.91 kB / 0.5087 GB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.3683, allocations: 55.91 kB / 0.5088 GB, free: 6.152 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.3687, allocations: 220.2 kB / 0.509 GB, free: 5.906 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.369, allocations: 0.7399 MB / 0.5097 GB, free: 5.141 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.999e-05/0.369, allocations: 21.19 kB / 0.5097 GB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.755e-05/0.3691, allocations: 27.36 kB / 0.5098 GB, free: 5.094 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3691, allocations: 0 / 0.5098 GB, free: 5.094 MB / 362.7 MB Notification: Performance of Templates: time 0.004653/0.3738, allocations: 2.197 MB / 0.5119 GB, free: 2.902 MB / 362.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