Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00126/0.00126, allocations: 192.6 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 226.5 MB / 244.7 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000797/0.0007971, allocations: 101.3 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.0002468, allocations: 4 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2553, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002164/0.2575, allocations: 1.586 MB / 409.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001719/0.2592, allocations: 1.094 MB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.2594, allocations: 6.531 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005851/0.26, allocations: 135.7 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003464/0.2603, allocations: 123.6 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.2609, allocations: 176 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002188/0.2612, allocations: 171.5 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2613, allocations: 30.94 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.041e-05/0.2614, allocations: 68.42 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.768e-05/0.2615, allocations: 67.69 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.2615, allocations: 6.844 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.2617, allocations: 43.97 kB / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.99e-05/0.2617, allocations: 31.84 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.698e-05/0.2618, allocations: 89.25 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002/0.262, allocations: 164.5 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.262, allocations: 0 / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.262, allocations: 0 / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.2621, allocations: 0 / 411.8 MB, free: 23.95 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.0006421/0.2627, allocations: 494.7 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2628, allocations: 12.03 kB / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.2628, allocations: 16.75 kB / 412.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.2631, allocations: 266.8 kB / 412.6 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.2631, allocations: 12.31 kB / 412.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.2631, allocations: 12.12 kB / 412.6 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.2634, allocations: 138.7 kB / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2635, allocations: 0 / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.2635, allocations: 4 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.2635, allocations: 8 kB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.156e-05/0.2636, allocations: 31.92 kB / 412.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004074/0.264, allocations: 358.4 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.2642, allocations: 111.9 kB / 413.3 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.965e-05/0.2643, allocations: 42.56 kB / 413.3 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/0.2643, allocations: 8.047 kB / 413.3 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.2645, allocations: 79.33 kB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.723e-06/0.2645, allocations: 0 / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003245/0.2648, allocations: 137.4 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.2649, allocations: 136.5 kB / 413.6 MB, free: 21.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.2651, allocations: 269.2 kB / 413.9 MB, free: 21.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.2652, allocations: 33.7 kB / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.429e-05/0.2652, allocations: 120 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.2653, allocations: 19.75 kB / 414.1 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-06/0.2653, allocations: 4 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.215e-05/0.2653, allocations: 330.8 kB / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.462e-05/0.2654, allocations: 23.94 kB / 414.4 MB, free: 21.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.81e-05/0.2655, allocations: 70 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.2656, allocations: 72.47 kB / 414.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2656, allocations: 0 / 414.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001749/0.2658, allocations: 121.4 kB / 414.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2658, allocations: 8 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2658, allocations: 0 / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.2658, allocations: 4 kB / 414.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.89e-05/0.2659, allocations: 11.98 kB / 414.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.2659, allocations: 4 kB / 414.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.545e-05/0.266, allocations: 11.94 kB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.266, allocations: 12.06 kB / 414.7 MB, free: 20.7 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.468e-05/0.2661, allocations: 141.8 kB / 414.9 MB, free: 20.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.234e-05/0.2662, allocations: 69.34 kB / 414.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.2662, allocations: 29.69 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.2663, allocations: 0 / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2663, allocations: 0 / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2663, allocations: 7.938 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.2664, allocations: 217.6 kB / 415.2 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2664, allocations: 8.047 kB / 415.2 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.39e-05/0.2665, allocations: 4 kB / 415.2 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2665, allocations: 4 kB / 415.2 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.2665, allocations: 0 / 415.2 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2665, allocations: 4 kB / 415.2 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2665, allocations: 0 / 415.2 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.2667, allocations: 162.4 kB / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.358e-05/0.2668, allocations: 112.8 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.2668, allocations: 0 / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.266e-05/0.2669, allocations: 7.984 kB / 415.5 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.2669, allocations: 8 kB / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.267, allocations: 19.92 kB / 415.5 MB, free: 19.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001596/0.2671, allocations: 200.5 kB / 415.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2671, allocations: 0 / 415.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002383/0.2674, allocations: 28 kB / 415.7 MB, free: 19.59 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (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.000874/0.2683, allocations: 412.8 kB / 416.1 MB, free: 19.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002115/0.2685, allocations: 59.92 kB / 416.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2685, allocations: 0 / 416.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.89e-05/0.2686, allocations: 31.92 kB / 416.2 MB, free: 19.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.269, allocations: 60.98 kB / 416.3 MB, free: 19.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005237/0.2695, allocations: 377.6 kB / 416.7 MB, free: 18.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.2697, allocations: 0.7244 MB / 417.4 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.2697, allocations: 27.42 kB / 417.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2697, allocations: 4 kB / 417.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of Templates: time 0.004218/0.274, allocations: 2.614 MB / 420 MB, free: 15.37 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches