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.001322/0.001322, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.00139/0.00139, allocations: 185 kB / 24.46 MB, free: 3.863 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.405/1.405, allocations: 225.7 MB / 253.3 MB, free: 12.83 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.001614/0.001614, allocations: 51.91 kB / 371.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2741, allocations: 52.18 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004629/0.2787, allocations: 1.863 MB / 425.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002928/0.2816, allocations: 1.056 MB / 426.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.2818, allocations: 7.938 kB / 426.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003809/0.2821, allocations: 67.66 kB / 426.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003646/0.2825, allocations: 99.59 kB / 426.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.2836, allocations: 257.6 kB / 427.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.2839, allocations: 167.5 kB / 427.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.2841, allocations: 25.39 kB / 427.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.2843, allocations: 79.62 kB / 427.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.2845, allocations: 87.61 kB / 427.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.2845, allocations: 8 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.2847, allocations: 71.94 kB / 427.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.2848, allocations: 47.84 kB / 427.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.2849, allocations: 55.59 kB / 427.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000491/0.2854, allocations: 238 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2854, allocations: 0 / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2854, allocations: 0 / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2854, allocations: 4 kB / 427.9 MB, free: 10.35 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.0009778/0.2864, allocations: 470.5 kB / 428.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.2865, allocations: 8.031 kB / 428.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.454e-05/0.2866, allocations: 28.8 kB / 428.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/0.2872, allocations: 233.5 kB / 428.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.2872, allocations: 384 / 428.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.919e-05/0.2872, allocations: 16.11 kB / 428.7 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004715/0.2877, allocations: 172.4 kB / 428.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2877, allocations: 0 / 428.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.2877, allocations: 8 kB / 428.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2877, allocations: 0 / 428.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.2879, allocations: 39.92 kB / 428.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000636/0.2885, allocations: 318 kB / 429.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.2889, allocations: 115.9 kB / 429.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.289, allocations: 42.56 kB / 429.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.2891, allocations: 4 kB / 429.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.2893, allocations: 79.38 kB / 429.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.034e-06/0.2893, allocations: 0 / 429.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005618/0.2898, allocations: 165.6 kB / 429.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.29, allocations: 140.5 kB / 429.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005308/0.2905, allocations: 325.8 kB / 430 MB, free: 8.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.2905, allocations: 29.7 kB / 430.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.2907, allocations: 128.1 kB / 430.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.194e-05/0.2907, allocations: 11.91 kB / 430.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.991e-05/0.2908, allocations: 45.84 kB / 430.3 MB, free: 7.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.291, allocations: 334.8 kB / 430.6 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.2911, allocations: 23.98 kB / 430.6 MB, free: 7.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.2913, allocations: 137.3 kB / 430.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/0.2915, allocations: 84.2 kB / 430.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2915, allocations: 0 / 430.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003749/0.2919, allocations: 125.5 kB / 430.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2919, allocations: 8 kB / 430.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2919, allocations: 0 / 430.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.292, allocations: 3.938 kB / 431 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.2921, allocations: 19.98 kB / 431 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.2921, allocations: 7.984 kB / 431 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.2922, allocations: 7.953 kB / 431 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.2922, allocations: 0 / 431 MB, free: 6.988 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.0002115/0.2925, allocations: 169.8 kB / 431.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.2926, allocations: 65.55 kB / 431.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004135/0.293, allocations: 131.4 kB / 431.3 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.293, allocations: 4 kB / 431.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.293, allocations: 0 / 431.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.293, allocations: 3.984 kB / 431.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.2933, allocations: 169.2 kB / 431.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.2933, allocations: 0 / 431.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.2934, allocations: 19.98 kB / 431.5 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2934, allocations: 64 / 431.5 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.2934, allocations: 12.12 kB / 431.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.2934, allocations: 0 / 431.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.2934, allocations: 0 / 431.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004909/0.2939, allocations: 174.5 kB / 431.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.2941, allocations: 39.83 kB / 431.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.2941, allocations: 4 kB / 431.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.412e-05/0.2942, allocations: 7.938 kB / 431.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.2943, allocations: 12.08 kB / 431.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.2943, allocations: 7.938 kB / 431.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004068/0.2947, allocations: 249.1 kB / 432 MB, free: 5.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2947, allocations: 4 kB / 432 MB, free: 5.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004954/0.2952, allocations: 31.94 kB / 432.1 MB, free: 5.824 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.002154/0.2973, allocations: 449.3 kB / 432.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000386/0.2977, allocations: 79.84 kB / 432.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2977, allocations: 3.938 kB / 432.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.2979, allocations: 31.92 kB / 432.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.2985, allocations: 66.72 kB / 432.7 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.2995, allocations: 398.5 kB / 433.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.2997, allocations: 131.9 kB / 433.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.913e-05/0.2998, allocations: 23.42 kB / 433.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2998, allocations: 0 / 433.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of Templates: time 0.007805/0.3076, allocations: 2.942 MB / 436.2 MB, free: 1.859 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/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_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: 7.763648668769747]