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.001043/0.001043, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001068/0.001068, allocations: 141.1 kB / 24.54 MB, free: 36 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 0.929/0.929, allocations: 173.4 MB / 201.1 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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.302e-06/1.302e-06, allocations: 3.938 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.785e-05/1.916e-05, allocations: 2.312 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002325/0.002344, allocations: 1.92 MB / 269.9 MB, free: 4.496 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.003744, allocations: 1.102 MB / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.918e-05/0.003844, allocations: 4 kB / 271 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002847/0.004128, allocations: 63.61 kB / 271.1 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.004351, allocations: 95.53 kB / 271.2 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004398/0.004791, allocations: 259.1 kB / 271.4 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.00497, allocations: 171.4 kB / 271.6 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.388e-05/0.005064, allocations: 25.78 kB / 271.6 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.00517, allocations: 95.72 kB / 271.7 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.191e-05/0.005262, allocations: 71.8 kB / 271.8 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.005283, allocations: 8 kB / 271.8 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.00541, allocations: 71.88 kB / 271.9 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.078e-05/0.005481, allocations: 59.77 kB / 271.9 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.258e-05/0.005534, allocations: 39.86 kB / 272 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.005767, allocations: 187.2 kB / 272.1 MB, free: 2.254 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005769, allocations: 0 / 272.1 MB, free: 2.254 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.00577, allocations: 0 / 272.1 MB, free: 2.254 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.005774, allocations: 4 kB / 272.1 MB, free: 2.25 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.0005119/0.006286, allocations: 0.5517 MB / 272.7 MB, free: 1.656 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.006327, allocations: 12.03 kB / 272.7 MB, free: 1.645 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.006384, allocations: 32.75 kB / 272.7 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.006625, allocations: 223.5 kB / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.00664, allocations: 4.375 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.006655, allocations: 8.375 kB / 273 MB, free: 1.355 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.006917, allocations: 194.6 kB / 273.2 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.006925, allocations: 3.938 kB / 273.2 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.006936, allocations: 4 kB / 273.2 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.006942, allocations: 4 kB / 273.2 MB, free: 1.113 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.001e-05/0.006992, allocations: 19.92 kB / 273.2 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/0.007368, allocations: 367 kB / 273.6 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.007513, allocations: 125.3 kB / 273.7 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.525e-05/0.007558, allocations: 43.05 kB / 273.7 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.007576, allocations: 0 / 273.7 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.647e-05/0.007673, allocations: 72.98 kB / 273.8 MB, free: 400 kB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 8.82e-07/0.007674, allocations: 0 / 273.8 MB, free: 400 kB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002193/0.007893, allocations: 125.6 kB / 273.9 MB, free: 268 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.007948, allocations: 132.5 kB / 274 MB, free: 104 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004476/0.008396, allocations: 316.6 kB / 274.3 MB, free: 15.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.008412, allocations: 37.7 kB / 274.4 MB, free: 15.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.358e-05/0.008486, allocations: 174.8 kB / 274.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.008508, allocations: 19.83 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.008546, allocations: 39.3 kB / 274.6 MB, free: 15.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.008657, allocations: 0.504 MB / 275.1 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.579e-05/0.008682, allocations: 12.05 kB / 275.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.242e-05/0.008735, allocations: 106.1 kB / 275.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.434e-05/0.008789, allocations: 47.3 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.008791, allocations: 0 / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.555e-05/0.008886, allocations: 85.56 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.008897, allocations: 8 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.008902, allocations: 0 / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.008914, allocations: 0 / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.106e-05/0.008985, allocations: 19.97 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.00899, allocations: 0 / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.63e-05/0.009026, allocations: 7.953 kB / 275.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.209e-06/0.009031, allocations: 0 / 275.4 MB, free: 14.65 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 7.892e-05/0.00911, allocations: 176.4 kB / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.875e-05/0.009159, allocations: 65.59 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.009302, allocations: 103.4 kB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.009306, allocations: 4 kB / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.009309, allocations: 0 / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.009314, allocations: 3.984 kB / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.009435, allocations: 188.5 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.009436, allocations: 0 / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.055e-05/0.009477, allocations: 12 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.009478, allocations: 0 / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.009487, allocations: 12.05 kB / 276 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.009492, allocations: 8.062 kB / 276 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.009493, allocations: 0 / 276 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/0.009624, allocations: 163.5 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.009675, allocations: 43.77 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.009694, allocations: 4 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.043e-05/0.009725, allocations: 4 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.009767, allocations: 15.92 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.009779, allocations: 4 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001125/0.009892, allocations: 221.1 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009892, allocations: 4 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001624/0.01005, allocations: 28 kB / 276.4 MB, free: 13.52 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.0008644/0.01092, allocations: 409.5 kB / 276.8 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.01108, allocations: 51.59 kB / 276.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.01108, allocations: 0 / 276.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.797e-05/0.01113, allocations: 31.66 kB / 276.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.0114, allocations: 75.86 kB / 277 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004124/0.01181, allocations: 326 kB / 277.3 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.63e-05/0.01187, allocations: 79.97 kB / 277.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.686e-05/0.01192, allocations: 21.73 kB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.564e-05/0.01196, allocations: 28.48 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01196, allocations: 0 / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of Templates: time 0.004841/0.0168, allocations: 2.947 MB / 280.4 MB, free: 9.695 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.119964956305921]