Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001507/0.001507, 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.001135/0.001135, allocations: 145.1 kB / 24.54 MB, free: 32 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.055/1.055, allocations: 173.4 MB / 201.2 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.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.639e-05, allocations: 5.969 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00252/0.002547, allocations: 1.928 MB / 269.9 MB, free: 4.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.003853, allocations: 1.024 MB / 270.9 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.003966, allocations: 7.938 kB / 271 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006012/0.004567, allocations: 155.5 kB / 271.1 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002434/0.004811, allocations: 123.4 kB / 271.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004037/0.005214, allocations: 195.3 kB / 271.4 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.005427, allocations: 187.4 kB / 271.6 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.00554, allocations: 25.78 kB / 271.6 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.005664, allocations: 103.7 kB / 271.7 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.005767, allocations: 59.81 kB / 271.8 MB, free: 2.617 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.005791, allocations: 8 kB / 271.8 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.005911, allocations: 55.91 kB / 271.8 MB, free: 2.555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.617e-05/0.005977, allocations: 43.83 kB / 271.9 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.824e-05/0.006035, allocations: 43.84 kB / 271.9 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.006285, allocations: 151.4 kB / 272.1 MB, free: 2.32 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.006288, allocations: 0 / 272.1 MB, free: 2.32 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.006289, allocations: 0 / 272.1 MB, free: 2.32 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.006294, allocations: 3.938 kB / 272.1 MB, free: 2.316 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.0005987/0.006893, allocations: 0.5324 MB / 272.6 MB, free: 1.742 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.006929, allocations: 12.03 kB / 272.6 MB, free: 1.73 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.875e-05/0.006988, allocations: 20.84 kB / 272.6 MB, free: 1.711 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/0.00722, allocations: 232.3 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.007242, allocations: 8.359 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.007256, allocations: 8.375 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.007492, allocations: 136.6 kB / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.007502, allocations: 3.938 kB / 273 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.007514, allocations: 4 kB / 273 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.007521, allocations: 0 / 273 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.007566, allocations: 19.92 kB / 273.1 MB, free: 1.25 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.007943, allocations: 347 kB / 273.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.008087, allocations: 121.2 kB / 273.5 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.766e-05/0.008135, allocations: 51.05 kB / 273.6 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.008152, allocations: 0 / 273.6 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001012/0.008253, allocations: 69.05 kB / 273.6 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.008254, allocations: 0 / 273.6 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002286/0.008482, allocations: 113.6 kB / 273.7 MB, free: 460 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.008537, allocations: 114.8 kB / 273.9 MB, free: 320 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.008712, allocations: 284.3 kB / 274.1 MB, free: 16 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.008736, allocations: 25.7 kB / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.008804, allocations: 171.2 kB / 274.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.008824, allocations: 15.91 kB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.008859, allocations: 31.36 kB / 274.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.008975, allocations: 0.4962 MB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.136e-05/0.008996, allocations: 12.05 kB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.409e-05/0.00904, allocations: 64.77 kB / 274.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.075e-05/0.009091, allocations: 51.23 kB / 275 MB, free: 15.1 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.009093, allocations: 0 / 275 MB, free: 15.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.871e-05/0.009182, allocations: 85.48 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.009193, allocations: 8.062 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.009197, allocations: 0 / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.009208, allocations: 4 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.732e-05/0.009266, allocations: 8 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.009271, allocations: 3.984 kB / 275.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.681e-05/0.009308, allocations: 7.938 kB / 275.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-06/0.009314, allocations: 0 / 275.1 MB, free: 14.98 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,sample1.u) * 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 8.229e-05/0.009396, allocations: 172.5 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.009448, allocations: 61.53 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.009575, allocations: 99.45 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.009577, allocations: 0 / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.009581, allocations: 4 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.009586, allocations: 7.969 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.009697, allocations: 176.5 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.009698, allocations: 0 / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.775e-05/0.009716, allocations: 7.984 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.009717, allocations: 4 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.009726, allocations: 4 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.009729, allocations: 8.062 kB / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.00973, allocations: 0 / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.009849, allocations: 159.6 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.754e-05/0.009886, allocations: 31.84 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.009905, allocations: 4 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.007e-05/0.009935, allocations: 7.984 kB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.009969, allocations: 7.984 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.009981, allocations: 8 kB / 275.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.821e-05/0.01008, allocations: 193.1 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01008, allocations: 0 / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001919/0.01027, allocations: 31.92 kB / 276.1 MB, free: 13.92 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,sample1.u,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.0009978/0.01127, allocations: 401.7 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.01141, allocations: 51.59 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01141, allocations: 4.062 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-05/0.01145, allocations: 31.66 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.01177, allocations: 69.38 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004109/0.01218, allocations: 292.9 kB / 276.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.643e-05/0.01224, allocations: 75.83 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.076e-05/0.01229, allocations: 21.42 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.01233, allocations: 20.69 kB / 277 MB, free: 13.05 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01233, allocations: 0 / 277 MB, free: 13.05 MB / 266.7 MB Notification: Performance of Templates: time 0.00524/0.01757, allocations: 2.722 MB / 279.7 MB, free: 10.36 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/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.046053101308644]