Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 107.1 kB / 20.44 MB, free: 1.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 208.7 kB / 23.72 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.587/1.587, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 43.94 kB / 378.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2767, allocations: 53.37 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.004934/0.2816, allocations: 1.891 MB / 433.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003053/0.2846, allocations: 1.134 MB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.2848, allocations: 7.938 kB / 434.6 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007772/0.2856, allocations: 155.5 kB / 434.8 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005762/0.2862, allocations: 155.4 kB / 434.9 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006899/0.2869, allocations: 175.4 kB / 435.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003704/0.2872, allocations: 191.5 kB / 435.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.2874, allocations: 25.53 kB / 435.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.2875, allocations: 79.69 kB / 435.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.2877, allocations: 79.56 kB / 435.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.2878, allocations: 8 kB / 435.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.288, allocations: 63.95 kB / 435.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.67e-05/0.2881, allocations: 43.84 kB / 435.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.2882, allocations: 59.59 kB / 435.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004721/0.2887, allocations: 213.5 kB / 435.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2887, allocations: 0 / 435.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2887, allocations: 0 / 435.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2887, allocations: 4 kB / 435.8 MB, free: 2.461 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.001007/0.2897, allocations: 450.7 kB / 436.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2897, allocations: 8.031 kB / 436.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.2898, allocations: 24.8 kB / 436.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.2903, allocations: 213 kB / 436.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.2903, allocations: 8.375 kB / 436.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.2904, allocations: 12.11 kB / 436.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.2908, allocations: 140.9 kB / 436.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.2908, allocations: 0 / 436.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.2908, allocations: 0 / 436.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.2909, allocations: 8 kB / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.291, allocations: 39.91 kB / 436.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006571/0.2917, allocations: 298 kB / 437 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.292, allocations: 107.9 kB / 437.1 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.2922, allocations: 42.56 kB / 437.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.2922, allocations: 3.984 kB / 437.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.2924, allocations: 79.39 kB / 437.2 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.064e-06/0.2924, allocations: 4 kB / 437.2 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005232/0.2929, allocations: 145.4 kB / 437.4 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.293, allocations: 106.8 kB / 437.5 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004397/0.2935, allocations: 277 kB / 437.8 MB, free: 340 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.2935, allocations: 29.7 kB / 437.8 MB, free: 304 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.2936, allocations: 116.1 kB / 437.9 MB, free: 184 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.439e-05/0.2937, allocations: 15.91 kB / 437.9 MB, free: 168 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.862e-05/0.2937, allocations: 37.66 kB / 437.9 MB, free: 124 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.294, allocations: 335 kB / 438.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.258e-05/0.294, allocations: 20 kB / 438.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.2942, allocations: 98.7 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.2943, allocations: 80.22 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.2943, allocations: 0 / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002387/0.2946, allocations: 117.6 kB / 438.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2946, allocations: 8 kB / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.2946, allocations: 0 / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.2946, allocations: 0 / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.579e-05/0.2947, allocations: 15.94 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.2947, allocations: 0 / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.2948, allocations: 11.94 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.2948, allocations: 4 kB / 438.6 MB, free: 15.39 MB / 350.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,sample1.u,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.0001863/0.295, allocations: 146.5 kB / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-05/0.2951, allocations: 73.62 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002825/0.2953, allocations: 119.3 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2953, allocations: 0 / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2954, allocations: 4 kB / 439 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2954, allocations: 0 / 439 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.2956, allocations: 169.5 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2956, allocations: 4 kB / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.357e-05/0.2956, allocations: 11.94 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2956, allocations: 0 / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.2956, allocations: 4 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2956, allocations: 4.062 kB / 439.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2956, allocations: 0 / 439.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.2959, allocations: 166.6 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.296, allocations: 31.84 kB / 439.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.296, allocations: 4 kB / 439.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.107e-05/0.2961, allocations: 7.984 kB / 439.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/0.2962, allocations: 7.984 kB / 439.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.2962, allocations: 4 kB / 439.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.2964, allocations: 200.5 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2964, allocations: 3.938 kB / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.2967, allocations: 35.94 kB / 439.6 MB, free: 14.34 MB / 350.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,sample1.u,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.001715/0.2984, allocations: 449.4 kB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002222/0.2986, allocations: 71.84 kB / 440.1 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2986, allocations: 0 / 440.1 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.894e-05/0.2987, allocations: 27.94 kB / 440.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.2991, allocations: 67.5 kB / 440.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005906/0.2997, allocations: 321.3 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.2998, allocations: 123.2 kB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.741e-05/0.2999, allocations: 21.48 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.43e-05/0.3, allocations: 19.44 kB / 440.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3, allocations: 0 / 440.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Templates: time 0.00675/0.3067, allocations: 2.685 MB / 443.4 MB, free: 10.73 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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: 5.035875023342669]