Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001976/0.001976, allocations: 105.1 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 209.7 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.617/1.617, allocations: 230.3 MB / 258 MB, free: 8.25 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 63.89 kB / 378.8 MB, free: 2.789 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3154, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003986/0.3193, allocations: 1.919 MB / 434 MB, free: 5.164 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002565/0.3219, allocations: 1.305 MB / 435.3 MB, free: 3.852 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.3221, allocations: 7.938 kB / 435.3 MB, free: 3.844 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003728/0.3224, allocations: 67.67 kB / 435.4 MB, free: 3.777 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000411/0.3229, allocations: 131.4 kB / 435.5 MB, free: 3.648 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007325/0.3236, allocations: 234.7 kB / 435.8 MB, free: 3.422 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002722/0.3239, allocations: 179.5 kB / 435.9 MB, free: 3.246 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.324, allocations: 29.72 kB / 436 MB, free: 3.215 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.3241, allocations: 75.64 kB / 436 MB, free: 3.141 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.3243, allocations: 83.67 kB / 436.1 MB, free: 3.059 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.3243, allocations: 8 kB / 436.1 MB, free: 3.051 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.3245, allocations: 75.88 kB / 436.2 MB, free: 2.977 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.3246, allocations: 55.77 kB / 436.3 MB, free: 2.922 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.3247, allocations: 75.48 kB / 436.3 MB, free: 2.848 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.3251, allocations: 240.7 kB / 436.6 MB, free: 2.617 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3251, allocations: 0 / 436.6 MB, free: 2.617 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.854e-06/0.3251, allocations: 0 / 436.6 MB, free: 2.617 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.403e-06/0.3251, allocations: 7.938 kB / 436.6 MB, free: 2.609 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.000931/0.326, allocations: 490.4 kB / 437.1 MB, free: 2.094 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.3261, allocations: 8.031 kB / 437.1 MB, free: 2.086 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.724e-05/0.3262, allocations: 24.8 kB / 437.1 MB, free: 2.062 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.3266, allocations: 225.5 kB / 437.3 MB, free: 1.816 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.3267, allocations: 8.375 kB / 437.3 MB, free: 1.809 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.3267, allocations: 8.375 kB / 437.3 MB, free: 1.801 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003904/0.3271, allocations: 159.8 kB / 437.5 MB, free: 1.617 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3271, allocations: 0 / 437.5 MB, free: 1.617 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.3271, allocations: 4 kB / 437.5 MB, free: 1.613 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.3271, allocations: 7.938 kB / 437.5 MB, free: 1.605 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.3272, allocations: 35.97 kB / 437.5 MB, free: 1.57 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.3278, allocations: 357.4 kB / 437.9 MB, free: 1.172 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.3281, allocations: 115.9 kB / 438 MB, free: 1.031 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.799e-05/0.3282, allocations: 42.56 kB / 438 MB, free: 0.9805 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.3282, allocations: 0 / 438 MB, free: 0.9805 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.3284, allocations: 91.31 kB / 438.1 MB, free: 0.8789 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.3284, allocations: 0 / 438.1 MB, free: 0.8789 MB / 334.1 MB
Notification: Performance of matching and sorting (n=9): time 0.0004423/0.3289, allocations: 149.4 kB / 438.3 MB, free: 0.7266 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.329, allocations: 166.2 kB / 438.4 MB, free: 0.5273 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/0.3294, allocations: 333.8 kB / 438.8 MB, free: 200 kB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.3294, allocations: 29.95 kB / 438.8 MB, free: 164 kB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3295, allocations: 136.1 kB / 438.9 MB, free: 24 kB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.3295, allocations: 15.91 kB / 438.9 MB, free: 8 kB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-05/0.3296, allocations: 29.7 kB / 439 MB, free: 15.97 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001664/0.3298, allocations: 338.8 kB / 439.3 MB, free: 15.63 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.314e-05/0.3299, allocations: 23.98 kB / 439.3 MB, free: 15.61 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.33, allocations: 82.86 kB / 439.4 MB, free: 15.5 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.3302, allocations: 88.22 kB / 439.5 MB, free: 15.4 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3302, allocations: 0 / 439.5 MB, free: 15.4 MB / 350.1 MB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002549/0.3304, allocations: 129.4 kB / 439.6 MB, free: 15.27 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3304, allocations: 8 kB / 439.6 MB, free: 15.26 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3304, allocations: 0 / 439.6 MB, free: 15.26 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3304, allocations: 4 kB / 439.6 MB, free: 15.26 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3306, allocations: 19.98 kB / 439.6 MB, free: 15.24 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.3306, allocations: 7.938 kB / 439.7 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.322e-05/0.3307, allocations: 7.938 kB / 439.7 MB, free: 15.22 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.3307, allocations: 4 kB / 439.7 MB, free: 15.22 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.0001652/0.3308, allocations: 166.6 kB / 439.8 MB, free: 15.05 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.444e-05/0.3309, allocations: 69.45 kB / 439.9 MB, free: 14.97 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002791/0.3312, allocations: 115.7 kB / 440 MB, free: 14.85 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.3312, allocations: 4 kB / 440 MB, free: 14.85 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3312, allocations: 7.938 kB / 440 MB, free: 14.84 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3312, allocations: 0 / 440 MB, free: 14.84 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.3314, allocations: 216.7 kB / 440.2 MB, free: 14.59 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3315, allocations: 0 / 440.2 MB, free: 14.59 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.813e-05/0.3315, allocations: 20.05 kB / 440.3 MB, free: 14.57 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3315, allocations: 3.938 kB / 440.3 MB, free: 14.56 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.3315, allocations: 0 / 440.3 MB, free: 14.56 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3315, allocations: 4 kB / 440.3 MB, free: 14.56 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3315, allocations: 0 / 440.3 MB, free: 14.56 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002893/0.3318, allocations: 174.6 kB / 440.4 MB, free: 14.36 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.688e-05/0.3319, allocations: 39.83 kB / 440.5 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.3319, allocations: 4 kB / 440.5 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.353e-05/0.332, allocations: 0 / 440.5 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.3321, allocations: 11.98 kB / 440.5 MB, free: 14.31 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.3321, allocations: 4 kB / 440.5 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002638/0.3323, allocations: 249.2 kB / 440.7 MB, free: 14.06 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3323, allocations: 0 / 440.7 MB, free: 14.06 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0002919/0.3326, allocations: 31.94 kB / 440.8 MB, free: 14.03 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 (9):
 * Single equations (assignments): 7
 * 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.001567/0.3342, allocations: 429.2 kB / 441.2 MB, free: 13.75 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002436/0.3344, allocations: 71.84 kB / 441.3 MB, free: 13.68 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3345, allocations: 0 / 441.3 MB, free: 13.68 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 9.409e-05/0.3345, allocations: 27.98 kB / 441.3 MB, free: 13.65 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004356/0.335, allocations: 59.95 kB / 441.3 MB, free: 13.59 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007282/0.3357, allocations: 385.3 kB / 441.7 MB, free: 13.18 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.3361, allocations: 0.7398 MB / 442.5 MB, free: 12.41 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 8.819e-05/0.3362, allocations: 29.47 kB / 442.5 MB, free: 12.38 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.044e-05/0.3363, allocations: 27.42 kB / 442.5 MB, free: 12.36 MB / 350.1 MB
Notification: Performance of SimCode: time 3.8e-07/0.3363, allocations: 0 / 442.5 MB, free: 12.36 MB / 350.1 MB
Notification: Performance of Templates: time 0.007419/0.3437, allocations: 2.901 MB / 445.4 MB, free: 9.473 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_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: 5.081241763196886]