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.001496/0.001496, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001588/0.001588, allocations: 209.2 kB / 23.73 MB, free: 4.523 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.578/1.578, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001614/0.001614, allocations: 51.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3226, 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.003851/0.3264, allocations: 1.876 MB / 433.4 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.3289, allocations: 1.208 MB / 434.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.3291, allocations: 7.875 kB / 434.7 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003426/0.3294, allocations: 71.67 kB / 434.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004755/0.3299, allocations: 135.4 kB / 434.9 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008145/0.3307, allocations: 226.3 kB / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003423/0.331, allocations: 179.5 kB / 435.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.3312, allocations: 21.73 kB / 435.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.3313, allocations: 79.64 kB / 435.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.3315, allocations: 87.66 kB / 435.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.3315, allocations: 8 kB / 435.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.3317, allocations: 83.88 kB / 435.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.73e-05/0.3318, allocations: 47.84 kB / 435.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.52e-05/0.3319, allocations: 59.53 kB / 435.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.3323, allocations: 245.2 kB / 435.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3323, allocations: 0 / 435.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3323, allocations: 0 / 435.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.3323, allocations: 0 / 435.9 MB, free: 2.395 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.0009157/0.3333, allocations: 482.5 kB / 436.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3333, allocations: 12.03 kB / 436.4 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.3334, allocations: 20.8 kB / 436.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.3338, allocations: 237.4 kB / 436.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.3339, allocations: 8.375 kB / 436.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.3339, allocations: 8.125 kB / 436.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.3342, allocations: 176.4 kB / 436.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.3343, allocations: 0 / 436.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.3343, allocations: 4 kB / 436.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.3343, allocations: 4 kB / 436.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.3344, allocations: 35.91 kB / 436.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.3349, allocations: 318.1 kB / 437.2 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.3352, allocations: 111.9 kB / 437.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.3353, allocations: 54.48 kB / 437.3 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.3354, allocations: 8 kB / 437.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.3355, allocations: 75.38 kB / 437.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.823e-06/0.3355, allocations: 0 / 437.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004646/0.336, allocations: 161.4 kB / 437.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.3361, allocations: 136.5 kB / 437.7 MB, free: 376 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004119/0.3365, allocations: 329.9 kB / 438 MB, free: 40 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.3366, allocations: 33.7 kB / 438 MB, free: 0 / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.3367, allocations: 132.3 kB / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.3367, allocations: 19.92 kB / 438.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.966e-05/0.3368, allocations: 33.7 kB / 438.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.337, allocations: 338.7 kB / 438.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.051e-05/0.3371, allocations: 27.98 kB / 438.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.3372, allocations: 133.3 kB / 438.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.3374, allocations: 92.2 kB / 438.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3374, allocations: 4.031 kB / 438.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002582/0.3377, allocations: 125.4 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.3377, allocations: 8 kB / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3377, allocations: 0 / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3377, allocations: 0 / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.3378, allocations: 27.92 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3378, allocations: 0 / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.956e-05/0.3379, allocations: 4 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.3379, allocations: 7.984 kB / 439 MB, free: 14.99 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.000165/0.3381, allocations: 158.6 kB / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.3382, allocations: 73.44 kB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003022/0.3385, allocations: 123.4 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3385, allocations: 0 / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3385, allocations: 4.297 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3385, allocations: 0 / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.3387, allocations: 185.1 kB / 439.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.3387, allocations: 4 kB / 439.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.531e-05/0.3388, allocations: 20.05 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.3388, allocations: 4 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.3388, allocations: 0 / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3388, allocations: 4 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3388, allocations: 0 / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.3391, allocations: 178.5 kB / 439.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.733e-05/0.3392, allocations: 39.81 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.3393, allocations: 8 kB / 439.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.892e-05/0.3393, allocations: 0 / 439.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.3394, allocations: 11.98 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.3394, allocations: 11.98 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002669/0.3397, allocations: 245.2 kB / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3397, allocations: 0 / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002871/0.34, allocations: 39.92 kB / 440.1 MB, free: 13.83 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.001756/0.3417, allocations: 457.6 kB / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002848/0.342, allocations: 79.83 kB / 440.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.342, allocations: 4.25 kB / 440.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.256e-05/0.3421, allocations: 27.98 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.3425, allocations: 71.05 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007538/0.3433, allocations: 380.9 kB / 441.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.3434, allocations: 131.9 kB / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.062e-05/0.3435, allocations: 25.67 kB / 441.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.047e-05/0.3436, allocations: 19.44 kB / 441.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3436, allocations: 0 / 441.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of Templates: time 0.007779/0.3514, allocations: 3.131 MB / 444.4 MB, free: 9.684 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.808278372976929]