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.002115/0.002115, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002749/0.002749, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.102/2.102, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 63.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3449, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.005037/0.35, allocations: 1.883 MB / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002932/0.353, allocations: 1.27 MB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002347/0.3533, allocations: 0 / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004595/0.3538, allocations: 71.66 kB / 413.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005851/0.3544, allocations: 127.4 kB / 413.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.3555, allocations: 230.8 kB / 413.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004017/0.3559, allocations: 175.5 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.3561, allocations: 33.53 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/0.3564, allocations: 75.64 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/0.3566, allocations: 83.67 kB / 413.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.851e-05/0.3566, allocations: 8 kB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002574/0.3569, allocations: 67.95 kB / 413.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.357, allocations: 51.84 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.3571, allocations: 87.34 kB / 414.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004813/0.3576, allocations: 239.1 kB / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3576, allocations: 0 / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3577, allocations: 0 / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.3577, 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.0009997/0.3587, allocations: 0.5363 MB / 414.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.3587, allocations: 15.97 kB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.374e-05/0.3588, allocations: 20.66 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.3594, allocations: 295.6 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.3595, allocations: 4.375 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.506e-05/0.3595, allocations: 8.125 kB / 415.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000435/0.3599, allocations: 159.5 kB / 415.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.36, allocations: 0 / 415.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.36, allocations: 11.92 kB / 415.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.36, allocations: 0 / 415.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001475/0.3602, allocations: 31.98 kB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007184/0.3609, allocations: 386.4 kB / 415.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.3612, allocations: 119.9 kB / 415.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.3614, allocations: 46.56 kB / 415.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.3614, allocations: 0 / 415.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.3616, allocations: 87.38 kB / 416 MB, free: 11.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.803e-06/0.3617, allocations: 0 / 416 MB, free: 11.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000515/0.3622, allocations: 153.3 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.3623, allocations: 162.2 kB / 416.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004867/0.3628, allocations: 334.7 kB / 416.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.3629, allocations: 25.7 kB / 416.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.363, allocations: 140 kB / 416.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.363, allocations: 20 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.518e-05/0.3631, allocations: 33.7 kB / 416.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3633, allocations: 338.8 kB / 417.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.3634, allocations: 23.94 kB / 417.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.3636, allocations: 86.78 kB / 417.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.3638, allocations: 92.47 kB / 417.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3638, allocations: 0 / 417.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003174/0.3641, allocations: 125.2 kB / 417.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.3642, allocations: 14.31 kB / 417.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3642, allocations: 0 / 417.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.3642, allocations: 0 / 417.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.3644, allocations: 19.98 kB / 417.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.3644, allocations: 4 kB / 417.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.3645, allocations: 11.94 kB / 417.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.3645, allocations: 4 kB / 417.6 MB, free: 9.586 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.0002168/0.3648, allocations: 153.7 kB / 417.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.3649, allocations: 69.41 kB / 417.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.592e-05/0.365, allocations: 25.7 kB / 417.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.365, allocations: 4 kB / 417.8 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.365, allocations: 0 / 417.8 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.365, allocations: 3.938 kB / 417.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003215/0.3653, allocations: 245.5 kB / 418 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3654, allocations: 7.938 kB / 418 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.192e-05/0.3654, allocations: 8 kB / 418.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.3655, allocations: 0 / 418.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.3655, allocations: 7.984 kB / 418.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3655, allocations: 4 kB / 418.1 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3655, allocations: 4 kB / 418.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003705/0.3659, allocations: 166.4 kB / 418.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.3661, allocations: 112.8 kB / 418.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.967e-05/0.3661, allocations: 4.062 kB / 418.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.539e-05/0.3662, allocations: 7.984 kB / 418.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.994e-05/0.3663, allocations: 12.09 kB / 418.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.3663, allocations: 15.86 kB / 418.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003313/0.3667, allocations: 249.9 kB / 418.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3667, allocations: 0 / 418.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004455/0.3671, allocations: 35.98 kB / 418.7 MB, free: 8.363 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.001344/0.3685, allocations: 410.5 kB / 419.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003172/0.3688, allocations: 79.89 kB / 419.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3688, allocations: 0 / 419.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.3689, allocations: 28.11 kB / 419.2 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.3695, allocations: 71.25 kB / 419.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008628/0.3704, allocations: 403.3 kB / 419.6 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000621/0.371, allocations: 0.7553 MB / 420.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.342e-05/0.3711, allocations: 19.44 kB / 420.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3711, allocations: 0 / 420.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of Templates: time 0.00765/0.3787, allocations: 2.984 MB / 423.4 MB, free: 3.711 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