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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001966/0.001966, allocations: 188.9 kB / 17.27 MB, free: 4.496 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 110.7 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 35.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3515, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004001/0.3555, allocations: 1.913 MB / 401.4 MB, free: 31.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002625/0.3582, allocations: 1.112 MB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.3585, allocations: 4 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005299/0.359, allocations: 55.8 kB / 402.6 MB, free: 30.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003505/0.3594, allocations: 87.72 kB / 402.7 MB, free: 30.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009743/0.3604, allocations: 224.9 kB / 402.9 MB, free: 29.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.3606, allocations: 159.5 kB / 403 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.3608, allocations: 29.53 kB / 403.1 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.3609, allocations: 71.64 kB / 403.1 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.3611, allocations: 71.69 kB / 403.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.3611, allocations: 4 kB / 403.2 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.3613, allocations: 63.89 kB / 403.3 MB, free: 29.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.923e-05/0.3614, allocations: 47.83 kB / 403.3 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.219e-05/0.3615, allocations: 71.47 kB / 403.4 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.3618, allocations: 220.8 kB / 403.6 MB, free: 29.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3619, allocations: 4 kB / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3619, allocations: 0 / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.3619, allocations: 0 / 403.6 MB, free: 29.23 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.00101/0.3629, allocations: 0.5312 MB / 404.1 MB, free: 28.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.147e-05/0.363, allocations: 8.031 kB / 404.1 MB, free: 28.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.3631, allocations: 24.66 kB / 404.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004443/0.3636, allocations: 283.5 kB / 404.4 MB, free: 28.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.3636, allocations: 8.375 kB / 404.4 MB, free: 28.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.3636, allocations: 8.125 kB / 404.5 MB, free: 28.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000392/0.364, allocations: 159.5 kB / 404.6 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.364, allocations: 0 / 404.6 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.3641, allocations: 8 kB / 404.6 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.3641, allocations: 0 / 404.6 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.3642, allocations: 39.92 kB / 404.7 MB, free: 28.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/0.3648, allocations: 382.3 kB / 405 MB, free: 27.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.3652, allocations: 119.9 kB / 405.1 MB, free: 27.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.081e-05/0.3653, allocations: 42.56 kB / 405.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.614e-05/0.3653, allocations: 4 kB / 405.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000308/0.3656, allocations: 83.31 kB / 405.3 MB, free: 27.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.064e-06/0.3657, allocations: 0 / 405.3 MB, free: 27.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005072/0.3662, allocations: 149.4 kB / 405.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.3663, allocations: 170.1 kB / 405.6 MB, free: 26.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.3667, allocations: 326.6 kB / 405.9 MB, free: 26.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.3667, allocations: 29.95 kB / 405.9 MB, free: 26.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.3668, allocations: 128.1 kB / 406.1 MB, free: 26.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.3669, allocations: 23.73 kB / 406.1 MB, free: 26.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-05/0.3669, allocations: 33.72 kB / 406.1 MB, free: 26.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.496e-05/0.367, allocations: 334.8 kB / 406.4 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.123e-05/0.3671, allocations: 23.98 kB / 406.5 MB, free: 26.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.3673, allocations: 90.8 kB / 406.6 MB, free: 25.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.3675, allocations: 84.2 kB / 406.6 MB, free: 25.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.3675, allocations: 0 / 406.6 MB, free: 25.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002323/0.3677, allocations: 125.3 kB / 406.8 MB, free: 25.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.3678, allocations: 8 kB / 406.8 MB, free: 25.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3678, allocations: 0 / 406.8 MB, free: 25.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3678, allocations: 0 / 406.8 MB, free: 25.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.3679, allocations: 19.98 kB / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3679, allocations: 7.938 kB / 406.8 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.135e-05/0.368, allocations: 11.94 kB / 406.8 MB, free: 25.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.368, allocations: 4.047 kB / 406.8 MB, free: 25.67 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 ($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.0001374/0.3682, allocations: 159.5 kB / 407 MB, free: 25.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.3683, allocations: 65.36 kB / 407 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.177e-05/0.3684, allocations: 29.7 kB / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3684, allocations: 0 / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3684, allocations: 4 kB / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3684, allocations: 3.938 kB / 407.1 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.3687, allocations: 241.9 kB / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3687, allocations: 0 / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.322e-05/0.3688, allocations: 12 kB / 407.3 MB, free: 25.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.3688, allocations: 8.062 kB / 407.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.3688, allocations: 3.984 kB / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.3688, allocations: 0 / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3688, allocations: 4 kB / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007203/0.3696, allocations: 0.7735 MB / 408.1 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.3697, allocations: 116.7 kB / 408.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.3697, allocations: 8.031 kB / 408.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.341e-05/0.3699, allocations: 15.92 kB / 408.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.438e-05/0.3699, allocations: 4 kB / 408.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.37, allocations: 7.984 kB / 408.3 MB, free: 24.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.3703, allocations: 237.9 kB / 408.5 MB, free: 23.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3703, allocations: 0 / 408.5 MB, free: 23.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006555/0.371, allocations: 36 kB / 408.5 MB, free: 23.82 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,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.001021/0.372, allocations: 434.3 kB / 408.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003016/0.3723, allocations: 71.84 kB / 409 MB, free: 23.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3723, allocations: 0 / 409 MB, free: 23.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.3724, allocations: 27.98 kB / 409 MB, free: 23.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.373, allocations: 68.75 kB / 409.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009042/0.374, allocations: 0.5328 MB / 409.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.3742, allocations: 0.74 MB / 410.4 MB, free: 22.03 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.3743, allocations: 29.53 kB / 410.4 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.772e-05/0.3744, allocations: 23.42 kB / 410.4 MB, free: 21.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3744, allocations: 0 / 410.4 MB, free: 21.98 MB / 298.7 MB Notification: Performance of Templates: time 0.007377/0.3818, allocations: 2.746 MB / 413.2 MB, free: 19.26 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches