Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, allocations: 113.8 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 210.7 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 59.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.256, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003269/0.2593, allocations: 1.879 MB / 411.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.2614, allocations: 1.266 MB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.2615, allocations: 7.938 kB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003119/0.2619, allocations: 67.66 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003575/0.2622, allocations: 135.4 kB / 413.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006625/0.2629, allocations: 219 kB / 413.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.2632, allocations: 179.5 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.2633, allocations: 33.55 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.2634, allocations: 75.69 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.2635, allocations: 75.69 kB / 413.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.2636, allocations: 12 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.2638, allocations: 71.88 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.966e-05/0.2639, allocations: 55.78 kB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.872e-05/0.2639, allocations: 75.47 kB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.2643, allocations: 254.9 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2643, allocations: 4 kB / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2643, allocations: 0 / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.2643, allocations: 0 / 414.3 MB, free: 13.19 MB / 334.1 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.000687/0.265, allocations: 0.5324 MB / 414.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2651, allocations: 8.031 kB / 414.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.173e-05/0.2651, allocations: 28.66 kB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.2655, allocations: 291.5 kB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.2655, allocations: 12.38 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.2656, allocations: 8.125 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003377/0.2659, allocations: 155.5 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2659, allocations: 0 / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.266, allocations: 4 kB / 415.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.266, allocations: 4 kB / 415.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.2661, allocations: 35.92 kB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004714/0.2666, allocations: 378.5 kB / 415.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.2668, allocations: 123.9 kB / 415.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.41e-05/0.2669, allocations: 50.5 kB / 415.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.267, allocations: 4 kB / 415.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001668/0.2671, allocations: 79.38 kB / 416 MB, free: 11.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/0.2671, allocations: 0 / 416 MB, free: 11.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003647/0.2675, allocations: 157.2 kB / 416.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.289e-05/0.2676, allocations: 158.2 kB / 416.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.268, allocations: 338.9 kB / 416.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.268, allocations: 29.7 kB / 416.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.136e-05/0.2681, allocations: 136 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.2681, allocations: 19.81 kB / 416.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.12e-05/0.2682, allocations: 33.7 kB / 416.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2683, allocations: 330.8 kB / 417.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.827e-05/0.2684, allocations: 23.98 kB / 417.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.2685, allocations: 94.78 kB / 417.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.2687, allocations: 80.22 kB / 417.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2687, allocations: 7.938 kB / 417.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002341/0.2689, allocations: 129.3 kB / 417.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.269, allocations: 4 kB / 417.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.269, allocations: 0 / 417.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.269, allocations: 4 kB / 417.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.2691, allocations: 19.94 kB / 417.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.2691, allocations: 3.984 kB / 417.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.011e-05/0.2692, allocations: 7.938 kB / 417.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.2692, allocations: 8.125 kB / 417.5 MB, free: 9.598 MB / 334.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.2694, allocations: 154.1 kB / 417.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.565e-05/0.2695, allocations: 73.28 kB / 417.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.2696, allocations: 29.7 kB / 417.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.2696, allocations: 0 / 417.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.2696, allocations: 4 kB / 417.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.2696, allocations: 7.938 kB / 417.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.2698, allocations: 241.5 kB / 418 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2698, allocations: 4.062 kB / 418.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.326e-05/0.2699, allocations: 8 kB / 418.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.2699, allocations: 7.938 kB / 418.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.2699, allocations: 7.984 kB / 418.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.2699, allocations: 3.938 kB / 418.1 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.27, allocations: 4 kB / 418.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.2702, allocations: 166.4 kB / 418.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.877e-05/0.2703, allocations: 108.8 kB / 418.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.2704, allocations: 8 kB / 418.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.845e-05/0.2704, allocations: 7.984 kB / 418.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.2705, allocations: 8 kB / 418.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.2705, allocations: 11.92 kB / 418.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002301/0.2708, allocations: 241.9 kB / 418.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2708, allocations: 0 / 418.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002707/0.271, allocations: 36 kB / 418.7 MB, free: 8.379 MB / 334.1 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,table.y,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 (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.0009704/0.272, allocations: 417.2 kB / 419.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002371/0.2723, allocations: 71.89 kB / 419.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.2723, allocations: 3.938 kB / 419.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.198e-05/0.2724, allocations: 27.98 kB / 419.2 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.2728, allocations: 81 kB / 419.2 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006399/0.2734, allocations: 406.8 kB / 419.6 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.2738, allocations: 0.7436 MB / 420.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.755e-05/0.2739, allocations: 23.44 kB / 420.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2739, allocations: 0 / 420.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of Templates: time 0.005533/0.2794, allocations: 2.973 MB / 423.4 MB, free: 3.734 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches