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.0009463/0.0009463, allocations: 174.2 kB / 16.8 MB, free: 5.012 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.521/1.521, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007089/0.000709, allocations: 89.47 kB / 271.3 MB, free: 8.246 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.06798/0.06798, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000384/0.0003841, allocations: 8 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08469/0.08509, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.00201/0.08714, allocations: 1.583 MB / 445.3 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.08861, allocations: 0.9287 MB / 446.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.08878, allocations: 8 kB / 446.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005407/0.08933, allocations: 143.6 kB / 446.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000229/0.08957, allocations: 99.64 kB / 446.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.09004, allocations: 163.7 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.09023, allocations: 175.5 kB / 446.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.68e-05/0.09033, allocations: 29.84 kB / 446.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.454e-05/0.09043, allocations: 67.62 kB / 446.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.101e-05/0.09052, allocations: 63.69 kB / 446.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.09055, allocations: 4 kB / 446.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.09067, allocations: 47.92 kB / 447 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.546e-05/0.09073, allocations: 31.84 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.559e-05/0.09081, allocations: 93.23 kB / 447.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.09098, allocations: 147.6 kB / 447.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.09099, allocations: 0 / 447.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.091, allocations: 4 kB / 447.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.09101, allocations: 0 / 447.3 MB, free: 11.83 MB / 298.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.0005774/0.0916, allocations: 484.3 kB / 447.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.09164, allocations: 12.03 kB / 447.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.546e-05/0.09169, allocations: 24.69 kB / 447.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.09194, allocations: 262.8 kB / 448 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.09196, allocations: 4.375 kB / 448 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.09199, allocations: 16.12 kB / 448 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.09225, allocations: 138.7 kB / 448.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.09227, allocations: 3.938 kB / 448.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.09229, allocations: 4 kB / 448.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.0923, allocations: 4 kB / 448.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.588e-05/0.09239, allocations: 31.97 kB / 448.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/0.09278, allocations: 366.3 kB / 448.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.09296, allocations: 107.9 kB / 448.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.492e-05/0.09304, allocations: 42.56 kB / 448.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.09307, allocations: 0 / 448.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.09321, allocations: 79.33 kB / 448.8 MB, free: 10.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.09322, allocations: 0 / 448.8 MB, free: 10.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002936/0.09352, allocations: 145.3 kB / 448.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.09358, allocations: 140.4 kB / 449.1 MB, free: 9.738 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.09379, allocations: 261.3 kB / 449.3 MB, free: 9.473 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.0938, allocations: 29.7 kB / 449.4 MB, free: 9.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.09386, allocations: 120.1 kB / 449.5 MB, free: 9.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.09389, allocations: 19.75 kB / 449.5 MB, free: 9.297 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.0939, allocations: 0 / 449.5 MB, free: 9.297 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.84e-05/0.09396, allocations: 330.8 kB / 449.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.47e-05/0.09402, allocations: 23.98 kB / 449.8 MB, free: 8.941 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.692e-05/0.09409, allocations: 77.88 kB / 449.9 MB, free: 8.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.985e-05/0.0942, allocations: 76.22 kB / 450 MB, free: 8.754 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.09421, allocations: 4 kB / 450 MB, free: 8.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001584/0.09438, allocations: 117.4 kB / 450.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.0944, allocations: 4 kB / 450.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.09441, allocations: 4 kB / 450.1 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.09442, allocations: 320 / 450.1 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.089e-05/0.0945, allocations: 15.98 kB / 450.1 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.09451, allocations: 3.984 kB / 450.1 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.437e-05/0.09458, allocations: 19.84 kB / 450.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.09459, allocations: 4.125 kB / 450.2 MB, free: 8.578 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.662e-05/0.09469, allocations: 145.8 kB / 450.3 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.758e-05/0.09475, allocations: 61.5 kB / 450.4 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.0948, allocations: 21.7 kB / 450.4 MB, free: 8.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.09481, allocations: 4 kB / 450.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.09482, allocations: 0 / 450.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.09483, allocations: 3.938 kB / 450.4 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001208/0.09495, allocations: 225.6 kB / 450.6 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.09496, allocations: 4.062 kB / 450.6 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.517e-05/0.09499, allocations: 11.94 kB / 450.6 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.095, allocations: 0 / 450.6 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.09501, allocations: 7.984 kB / 450.6 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.09502, allocations: 4 kB / 450.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.09503, allocations: 0 / 450.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.09521, allocations: 154.4 kB / 450.8 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.905e-05/0.09528, allocations: 112.9 kB / 450.9 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.568e-05/0.09531, allocations: 0 / 450.9 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.103e-05/0.09538, allocations: 8 kB / 450.9 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.09542, allocations: 8.078 kB / 450.9 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.09544, allocations: 11.88 kB / 450.9 MB, free: 7.703 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001315/0.09558, allocations: 196.5 kB / 451.1 MB, free: 7.512 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09558, allocations: 0 / 451.1 MB, free: 7.512 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002231/0.09581, allocations: 28 kB / 451.2 MB, free: 7.484 MB / 298.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007939/0.09661, allocations: 430.4 kB / 451.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.09679, allocations: 63.86 kB / 451.6 MB, free: 6.992 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.0968, allocations: 3.938 kB / 451.6 MB, free: 6.988 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.975e-05/0.09687, allocations: 23.98 kB / 451.7 MB, free: 6.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.09723, allocations: 64.73 kB / 451.7 MB, free: 6.902 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004449/0.09769, allocations: 377.6 kB / 452.1 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.09785, allocations: 0.7282 MB / 452.8 MB, free: 5.742 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.0979, allocations: 19.44 kB / 452.8 MB, free: 5.723 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.0979, allocations: 0 / 452.8 MB, free: 5.723 MB / 298.7 MB Notification: Performance of Templates: time 0.003529/0.1014, allocations: 2.567 MB / 455.4 MB, free: 3.152 MB / 298.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/jenkins1/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