Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001491, allocations: 115.3 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 196 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009633/0.0009634, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.364, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003577/0.3676, allocations: 1.872 MB / 402.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.3696, allocations: 1.134 MB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.3698, allocations: 0 / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003263/0.3701, allocations: 67.67 kB / 403.8 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003133/0.3705, allocations: 91.59 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008738/0.3713, allocations: 256.3 kB / 404.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.3716, allocations: 175.5 kB / 404.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.3717, allocations: 25.55 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.3719, allocations: 71.69 kB / 404.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.372, allocations: 75.69 kB / 404.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.372, allocations: 12 kB / 404.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001603/0.3722, allocations: 71.89 kB / 404.6 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.826e-05/0.3723, allocations: 51.83 kB / 404.6 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.3724, allocations: 75.47 kB / 404.7 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004072/0.3728, allocations: 228.4 kB / 404.9 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3729, allocations: 7.984 kB / 404.9 MB, free: 4.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.3729, allocations: 0 / 404.9 MB, free: 4.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.3729, allocations: 3.938 kB / 404.9 MB, free: 4.684 MB / 318.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.0008741/0.3738, allocations: 0.5272 MB / 405.4 MB, free: 4.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3738, allocations: 15.89 kB / 405.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.986e-05/0.3739, allocations: 20.66 kB / 405.5 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004861/0.3744, allocations: 287.6 kB / 405.8 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.3744, allocations: 4.375 kB / 405.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.3744, allocations: 8.125 kB / 405.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000374/0.3748, allocations: 159.5 kB / 405.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.3748, allocations: 0 / 405.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.3749, allocations: 8 kB / 405.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3749, allocations: 3.938 kB / 405.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.375, allocations: 39.91 kB / 406 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.3756, allocations: 386.4 kB / 406.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.3759, allocations: 111.9 kB / 406.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.605e-05/0.376, allocations: 46.56 kB / 406.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.3761, allocations: 11.98 kB / 406.5 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.3763, allocations: 75.33 kB / 406.6 MB, free: 2.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.814e-06/0.3763, allocations: 0 / 406.6 MB, free: 2.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004447/0.3767, allocations: 157.5 kB / 406.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.3768, allocations: 162.2 kB / 406.9 MB, free: 2.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/0.3772, allocations: 326.7 kB / 407.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.3773, allocations: 29.7 kB / 407.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.788e-05/0.3773, allocations: 128 kB / 407.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.3774, allocations: 19.75 kB / 407.4 MB, free: 1.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.3774, allocations: 37.64 kB / 407.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3776, allocations: 334.8 kB / 407.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.106e-05/0.3777, allocations: 23.98 kB / 407.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.3778, allocations: 86.84 kB / 407.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.3779, allocations: 84.22 kB / 407.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.378, allocations: 0 / 407.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002426/0.3782, allocations: 117.4 kB / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3782, allocations: 11.98 kB / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3782, allocations: 0 / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.3783, allocations: 4 kB / 408.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.3784, allocations: 16.12 kB / 408.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.3784, allocations: 7.938 kB / 408.1 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.283e-05/0.3785, allocations: 19.83 kB / 408.1 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.3785, allocations: 4 kB / 408.1 MB, free: 1.117 MB / 318.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.0001443/0.3786, allocations: 149.8 kB / 408.3 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.441e-05/0.3787, allocations: 73.66 kB / 408.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.661e-05/0.3788, allocations: 21.7 kB / 408.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3788, allocations: 8.062 kB / 408.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3788, allocations: 4 kB / 408.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3789, allocations: 3.938 kB / 408.4 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.3791, allocations: 241.6 kB / 408.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3791, allocations: 0 / 408.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-05/0.3792, allocations: 11.98 kB / 408.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.3792, allocations: 4 kB / 408.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.3792, allocations: 4 kB / 408.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3792, allocations: 7.984 kB / 408.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3792, allocations: 0 / 408.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.3795, allocations: 170.3 kB / 408.8 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.3796, allocations: 108.9 kB / 408.9 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.3796, allocations: 8 kB / 408.9 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.612e-05/0.3797, allocations: 7.938 kB / 408.9 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.759e-05/0.3798, allocations: 11.98 kB / 408.9 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.3798, allocations: 11.88 kB / 409 MB, free: 180 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002731/0.3801, allocations: 241.9 kB / 409.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3801, allocations: 4 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.3804, allocations: 31.98 kB / 409.2 MB, free: 15.9 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.001192/0.3816, allocations: 425.6 kB / 409.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002662/0.3819, allocations: 71.91 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.3819, allocations: 4.25 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.603e-05/0.382, allocations: 35.92 kB / 409.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.3824, allocations: 54.05 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000694/0.3831, allocations: 364.9 kB / 410.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.3835, allocations: 0.7477 MB / 410.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.176e-05/0.3836, allocations: 25.55 kB / 410.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.196e-05/0.3837, allocations: 19.42 kB / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of SimCode: time 1.724e-06/0.3837, allocations: 4 kB / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Templates: time 0.007143/0.3909, allocations: 2.817 MB / 413.8 MB, free: 11.47 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches