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.002452/0.002452, allocations: 95.86 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002589/0.002589, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 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.566/1.566, allocations: 173.4 MB / 200.8 MB, free: 9.324 MB / 186.7 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 1.293e-06/1.293e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.711e-05/2.84e-05, allocations: 6.25 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003511/0.003539, allocations: 1.886 MB / 269.2 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.005698, allocations: 1.087 MB / 270.3 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.824e-05/0.005796, allocations: 11.88 kB / 270.3 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.006082, allocations: 63.67 kB / 270.4 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.00636, allocations: 99.45 kB / 270.5 MB, free: 3.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000718/0.007078, allocations: 255.1 kB / 270.7 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002746/0.007353, allocations: 171.5 kB / 270.9 MB, free: 3.168 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.473e-05/0.007447, allocations: 21.8 kB / 270.9 MB, free: 3.145 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.007626, allocations: 95.67 kB / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.007767, allocations: 79.77 kB / 271.1 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.007798, allocations: 8 kB / 271.1 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.007971, allocations: 67.88 kB / 271.1 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.846e-05/0.008069, allocations: 55.84 kB / 271.2 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.499e-05/0.008144, allocations: 43.8 kB / 271.2 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003964/0.008541, allocations: 235.2 kB / 271.5 MB, free: 2.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.008543, allocations: 4 kB / 271.5 MB, free: 2.566 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.008544, allocations: 3.938 kB / 271.5 MB, free: 2.562 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.008549, allocations: 4 kB / 271.5 MB, free: 2.559 MB / 250.7 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.0008461/0.009395, allocations: 0.5708 MB / 272 MB, free: 1.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.009427, allocations: 8.031 kB / 272.1 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.071e-05/0.009517, allocations: 28.8 kB / 272.1 MB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.009913, allocations: 227.5 kB / 272.3 MB, free: 1.66 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.009932, allocations: 8.375 kB / 272.3 MB, free: 1.652 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.009951, allocations: 8.359 kB / 272.3 MB, free: 1.645 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.01034, allocations: 205.2 kB / 272.5 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.01036, allocations: 3.938 kB / 272.5 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.01037, allocations: 0 / 272.5 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.01037, allocations: 3.938 kB / 272.5 MB, free: 1.402 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.0105, allocations: 35.92 kB / 272.6 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006279/0.01113, allocations: 391 kB / 272.9 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.01141, allocations: 137.3 kB / 273.1 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.01152, allocations: 51.05 kB / 273.1 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.01155, allocations: 7.938 kB / 273.1 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.01173, allocations: 81.03 kB / 273.2 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.01173, allocations: 0 / 273.2 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.000415/0.01214, allocations: 141.5 kB / 273.4 MB, free: 472 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.01226, allocations: 136.5 kB / 273.5 MB, free: 304 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000452/0.01271, allocations: 364.3 kB / 273.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.01274, allocations: 29.7 kB / 273.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.01289, allocations: 183.1 kB / 274 MB, free: 15.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.01292, allocations: 19.91 kB / 274.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.797e-05/0.01299, allocations: 39.31 kB / 274.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003009/0.01329, allocations: 0.5196 MB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.696e-05/0.01336, allocations: 12 kB / 274.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.01349, allocations: 110.1 kB / 274.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.01363, allocations: 67.48 kB / 274.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.01363, allocations: 0 / 274.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002074/0.01384, allocations: 89.59 kB / 274.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.01385, allocations: 8 kB / 274.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.01386, allocations: 4.062 kB / 274.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.01387, allocations: 3.938 kB / 274.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.341e-05/0.01396, allocations: 15.98 kB / 274.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.01397, allocations: 0 / 274.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.623e-05/0.01404, allocations: 11.89 kB / 274.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.01404, allocations: 4 kB / 274.9 MB, free: 14.74 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001567/0.0142, allocations: 176.5 kB / 275.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.01432, allocations: 69.5 kB / 275.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002692/0.01459, allocations: 107.4 kB / 275.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.01459, allocations: 8.062 kB / 275.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.0146, allocations: 3.938 kB / 275.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.0146, allocations: 0 / 275.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.01487, allocations: 216.6 kB / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01487, allocations: 0 / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.649e-05/0.01494, allocations: 19.92 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01495, allocations: 0 / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.01496, allocations: 4 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01496, allocations: 4 kB / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01496, allocations: 0 / 275.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.0153, allocations: 187.5 kB / 275.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.727e-05/0.01539, allocations: 39.78 kB / 275.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.01543, allocations: 8 kB / 275.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.853e-05/0.0155, allocations: 12.05 kB / 275.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.01556, allocations: 11.98 kB / 275.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.01557, allocations: 4 kB / 275.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002528/0.01583, allocations: 237.1 kB / 276 MB, free: 13.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01583, allocations: 0 / 276 MB, free: 13.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002511/0.01608, allocations: 27.98 kB / 276.1 MB, free: 13.54 MB / 266.7 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.002969/0.01905, allocations: 463 kB / 276.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002278/0.01927, allocations: 55.67 kB / 276.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.01928, allocations: 4 kB / 276.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.258e-05/0.01937, allocations: 39.61 kB / 276.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.0198, allocations: 79.92 kB / 276.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006436/0.02044, allocations: 342.1 kB / 277 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.02059, allocations: 124.2 kB / 277.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.474e-05/0.02066, allocations: 25.45 kB / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.02072, allocations: 24.5 kB / 277.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02072, allocations: 0 / 277.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Templates: time 0.00778/0.0285, allocations: 2.931 MB / 280.1 MB, free: 9.641 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/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: 4.569150776020251]