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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 187.7 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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=5013,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=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 51.91 kB / 370.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2852, allocations: 52.18 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00425/0.2894, allocations: 1.859 MB / 424.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.2922, allocations: 1.048 MB / 426 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.2924, allocations: 11.88 kB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004274/0.2928, allocations: 71.66 kB / 426.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003961/0.2932, allocations: 91.59 kB / 426.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.2942, allocations: 265.7 kB / 426.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.2945, allocations: 171.5 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.2947, allocations: 21.67 kB / 426.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.2948, allocations: 79.69 kB / 426.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.295, allocations: 79.61 kB / 426.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.214e-05/0.295, allocations: 12 kB / 426.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.2952, allocations: 67.95 kB / 426.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.2953, allocations: 51.77 kB / 426.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.157e-05/0.2954, allocations: 55.61 kB / 426.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004694/0.2959, allocations: 241.3 kB / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2959, allocations: 0 / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2959, allocations: 0 / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.2959, allocations: 3.938 kB / 427.2 MB, free: 10.33 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.001008/0.2969, allocations: 470.6 kB / 427.6 MB, free: 9.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.297, allocations: 12.03 kB / 427.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.256e-05/0.2971, allocations: 20.8 kB / 427.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.2976, allocations: 229.5 kB / 427.9 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.2976, allocations: 4.375 kB / 427.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.2976, allocations: 16.06 kB / 427.9 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004054/0.298, allocations: 182.4 kB / 428.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.298, allocations: 4 kB / 428.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.298, allocations: 0 / 428.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.298, allocations: 0 / 428.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001423/0.2982, allocations: 43.91 kB / 428.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007254/0.2989, allocations: 322 kB / 428.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.2992, allocations: 111.9 kB / 428.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.965e-05/0.2993, allocations: 50.55 kB / 428.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.2993, allocations: 4 kB / 428.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.2995, allocations: 79.38 kB / 428.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.723e-06/0.2995, allocations: 0 / 428.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004584/0.3, allocations: 157.4 kB / 428.8 MB, free: 8.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.3001, allocations: 132.5 kB / 429 MB, free: 8.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003971/0.3005, allocations: 333.8 kB / 429.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.3005, allocations: 25.7 kB / 429.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.3006, allocations: 120.4 kB / 429.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.227e-05/0.3006, allocations: 23.89 kB / 429.5 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.963e-05/0.3007, allocations: 37.66 kB / 429.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3009, allocations: 330.8 kB / 429.8 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.747e-05/0.301, allocations: 27.98 kB / 429.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.3011, allocations: 133.3 kB / 430 MB, free: 7.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.3013, allocations: 84.22 kB / 430.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3013, allocations: 4.031 kB / 430.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002529/0.3015, allocations: 125.5 kB / 430.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3016, allocations: 7.938 kB / 430.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3016, allocations: 7.938 kB / 430.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.3016, allocations: 0 / 430.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3017, allocations: 23.92 kB / 430.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.3017, allocations: 0 / 430.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.573e-05/0.3018, allocations: 12.27 kB / 430.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.3018, allocations: 4.125 kB / 430.2 MB, free: 6.965 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.0001616/0.302, allocations: 161.7 kB / 430.4 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.853e-05/0.3021, allocations: 69.48 kB / 430.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002878/0.3024, allocations: 131.3 kB / 430.6 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3024, allocations: 4 kB / 430.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3024, allocations: 0 / 430.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3024, allocations: 0 / 430.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002104/0.3026, allocations: 181.2 kB / 430.8 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3026, allocations: 0 / 430.8 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.059e-05/0.3027, allocations: 16.06 kB / 430.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3027, allocations: 0 / 430.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.3027, allocations: 7.984 kB / 430.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.3027, allocations: 0 / 430.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3027, allocations: 0 / 430.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.303, allocations: 178.5 kB / 431 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.739e-05/0.3031, allocations: 35.84 kB / 431 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.489e-05/0.3031, allocations: 4 kB / 431 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.115e-05/0.3032, allocations: 7.984 kB / 431 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.3032, allocations: 11.98 kB / 431 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.3033, allocations: 8 kB / 431 MB, free: 6.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002616/0.3035, allocations: 241.2 kB / 431.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3035, allocations: 0 / 431.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002787/0.3038, allocations: 35.92 kB / 431.3 MB, free: 5.812 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001658/0.3055, allocations: 458.4 kB / 431.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002577/0.3057, allocations: 83.83 kB / 431.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3057, allocations: 256 / 431.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.959e-05/0.3058, allocations: 35.92 kB / 431.9 MB, free: 5.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.3062, allocations: 54.55 kB / 431.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00067/0.3069, allocations: 368.8 kB / 432.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.307, allocations: 127.9 kB / 432.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.3071, allocations: 37.73 kB / 432.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.001e-05/0.3072, allocations: 23.44 kB / 432.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3072, allocations: 0 / 432.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of Templates: time 0.007678/0.3149, allocations: 3.052 MB / 435.5 MB, free: 1.773 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.510223126038909]