Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001386/0.001386, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001567/0.001567, allocations: 212 kB / 23.73 MB, free: 4.387 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.582/1.582, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 55.92 kB / 378.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2651, allocations: 53.36 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003562/0.2686, allocations: 1.872 MB / 433.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.2709, allocations: 1.2 MB / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.2711, allocations: 7.938 kB / 434.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.2714, allocations: 71.66 kB / 434.7 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003984/0.2718, allocations: 135.4 kB / 434.9 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006747/0.2725, allocations: 234.2 kB / 435.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.2728, allocations: 175.5 kB / 435.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.2729, allocations: 25.73 kB / 435.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.273, allocations: 83.62 kB / 435.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.2732, allocations: 83.61 kB / 435.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.685e-05/0.2732, allocations: 12 kB / 435.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001881/0.2734, allocations: 71.94 kB / 435.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.2735, allocations: 51.78 kB / 435.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2736, allocations: 59.59 kB / 435.6 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004309/0.274, allocations: 236.3 kB / 435.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.274, allocations: 7.922 kB / 435.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.274, allocations: 4 kB / 435.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.274, allocations: 0 / 435.9 MB, free: 2.398 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.0008919/0.2749, allocations: 478.5 kB / 436.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.275, allocations: 8.031 kB / 436.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.671e-05/0.275, allocations: 28.8 kB / 436.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004661/0.2755, allocations: 229.5 kB / 436.6 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.2755, allocations: 8.375 kB / 436.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.647e-05/0.2756, allocations: 8.125 kB / 436.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.276, allocations: 176.4 kB / 436.8 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.276, allocations: 4 kB / 436.8 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.276, allocations: 8 kB / 436.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.276, allocations: 0 / 436.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.2761, allocations: 39.97 kB / 436.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005485/0.2767, allocations: 318 kB / 437.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.277, allocations: 115.9 kB / 437.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.2771, allocations: 46.56 kB / 437.3 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.2771, allocations: 0 / 437.3 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.2773, allocations: 87.31 kB / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.2773, allocations: 0 / 437.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004332/0.2777, allocations: 153.4 kB / 437.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.2778, allocations: 136.5 kB / 437.7 MB, free: 388 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004251/0.2783, allocations: 337.9 kB / 438 MB, free: 44 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.2783, allocations: 25.7 kB / 438 MB, free: 12 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.2784, allocations: 136 kB / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.54e-05/0.2785, allocations: 27.89 kB / 438.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.257e-05/0.2785, allocations: 29.97 kB / 438.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.2787, allocations: 338.8 kB / 438.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.68e-05/0.2788, allocations: 23.98 kB / 438.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.2789, allocations: 133.4 kB / 438.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.2791, allocations: 84.22 kB / 438.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2791, allocations: 4.188 kB / 438.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002532/0.2793, allocations: 141.4 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2794, allocations: 7.984 kB / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2794, allocations: 0 / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2794, allocations: 4 kB / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.2795, allocations: 16 kB / 439 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.2795, allocations: 0 / 439 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.932e-05/0.2796, allocations: 7.984 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.2796, allocations: 4 kB / 439 MB, free: 15 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,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.0001574/0.2797, allocations: 158.6 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.704e-05/0.2798, allocations: 73.5 kB / 439.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002995/0.2801, allocations: 127.3 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.2801, allocations: 4 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2801, allocations: 0 / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2801, allocations: 3.984 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.2804, allocations: 189.1 kB / 439.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2804, allocations: 0 / 439.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.409e-05/0.2804, allocations: 12 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2804, allocations: 0 / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.2804, allocations: 12.05 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.2805, allocations: 3.938 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2805, allocations: 0 / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002988/0.2808, allocations: 174.5 kB / 439.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.72e-05/0.2808, allocations: 35.84 kB / 439.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.439e-05/0.2809, allocations: 4 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.307e-05/0.2809, allocations: 7.984 kB / 439.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.121e-05/0.281, allocations: 11.98 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.281, allocations: 4 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.2813, allocations: 245.2 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2813, allocations: 4 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002815/0.2816, allocations: 35.92 kB / 440.1 MB, free: 13.84 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,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.001764/0.2834, allocations: 457 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002491/0.2836, allocations: 83.77 kB / 440.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2836, allocations: 0 / 440.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.133e-05/0.2837, allocations: 31.98 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004117/0.2841, allocations: 69.31 kB / 440.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007073/0.2848, allocations: 388.9 kB / 441.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001459/0.285, allocations: 123.9 kB / 441.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.531e-05/0.285, allocations: 37.81 kB / 441.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.2851, allocations: 27.42 kB / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2851, allocations: 0 / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of Templates: time 0.007838/0.2929, allocations: 3.092 MB / 444.3 MB, free: 9.711 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.661780653521419]