Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001875/0.001875, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002414/0.002414, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.744/1.744, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 47.92 kB / 373.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1265, allocations: 53.33 MB / 426.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.005589/0.1321, allocations: 1.913 MB / 428.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003163/0.1352, allocations: 1.204 MB / 429.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.1355, allocations: 7.938 kB / 429.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009013/0.1364, allocations: 147.5 kB / 430.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006246/0.137, allocations: 163.4 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007333/0.1377, allocations: 171.2 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004447/0.1382, allocations: 175.5 kB / 430.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.1383, allocations: 33.53 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/0.1385, allocations: 79.58 kB / 430.7 MB, free: 428 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.1387, allocations: 79.67 kB / 430.7 MB, free: 348 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.1387, allocations: 8 kB / 430.8 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000211/0.139, allocations: 59.95 kB / 430.8 MB, free: 280 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.258e-05/0.1391, allocations: 43.78 kB / 430.9 MB, free: 236 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.1392, allocations: 75.48 kB / 430.9 MB, free: 160 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2714/0.4106, allocations: 201.4 kB / 431.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.4106, allocations: 2.844 kB / 431.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4106, allocations: 0 / 431.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.4107, allocations: 0 / 431.1 MB, free: 8.418 MB / 350.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.0009042/0.4116, allocations: 0.5182 MB / 431.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.4116, allocations: 13.27 kB / 431.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.312e-05/0.4117, allocations: 22.36 kB / 431.7 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.4121, allocations: 277 kB / 432 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.4121, allocations: 3.5 kB / 432 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.4122, allocations: 8.766 kB / 432 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.4125, allocations: 149.8 kB / 432.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.4126, allocations: 0 / 432.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.4126, allocations: 7.781 kB / 432.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.4126, allocations: 1.844 kB / 432.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.4127, allocations: 35.91 kB / 432.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005362/0.4133, allocations: 357.6 kB / 432.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/0.4135, allocations: 105.7 kB / 432.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.263e-05/0.4136, allocations: 46.39 kB / 432.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.4136, allocations: 3.344 kB / 432.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.4138, allocations: 74.7 kB / 432.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.4138, allocations: 0 / 432.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003933/0.4142, allocations: 149.5 kB / 432.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.4143, allocations: 135.8 kB / 433 MB, free: 7.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.4146, allocations: 270.6 kB / 433.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.4146, allocations: 29.94 kB / 433.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.994e-05/0.4146, allocations: 116.9 kB / 433.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.4147, allocations: 20.3 kB / 433.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/0.4147, allocations: 37.52 kB / 433.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.4148, allocations: 335.8 kB / 433.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.285e-05/0.4148, allocations: 20.41 kB / 433.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.538e-05/0.4149, allocations: 71.94 kB / 433.9 MB, free: 6.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.4151, allocations: 72.89 kB / 434 MB, free: 6.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4151, allocations: 0.5312 kB / 434 MB, free: 6.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002035/0.4153, allocations: 116.3 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.4153, allocations: 6.641 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.4153, allocations: 3.938 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.4153, allocations: 1.594 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.212e-05/0.4154, allocations: 17.14 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.4154, allocations: 1.875 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.532e-05/0.4155, allocations: 7.484 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.4155, allocations: 7.281 kB / 434.1 MB, free: 6.312 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,sample1.u,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.0001062/0.4156, allocations: 140.8 kB / 434.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.4157, allocations: 73.44 kB / 434.3 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.633e-05/0.4157, allocations: 23.34 kB / 434.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4157, allocations: 2.188 kB / 434.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4157, allocations: 4.594 kB / 434.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.4157, allocations: 2.109 kB / 434.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.4159, allocations: 236.1 kB / 434.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4159, allocations: 0 / 434.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.685e-05/0.4159, allocations: 10.78 kB / 434.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.4159, allocations: 0 / 434.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.4159, allocations: 1.5 kB / 434.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.4159, allocations: 12.08 kB / 434.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4159, allocations: 0 / 434.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/0.4161, allocations: 159.1 kB / 434.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.579e-05/0.4162, allocations: 109.3 kB / 434.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.05e-05/0.4162, allocations: 3.438 kB / 434.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.983e-05/0.4163, allocations: 12.22 kB / 434.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.438e-05/0.4163, allocations: 3.25 kB / 434.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.4164, allocations: 10.59 kB / 434.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001666/0.4165, allocations: 198 kB / 435.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4165, allocations: 0 / 435.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002747/0.4168, allocations: 38.41 kB / 435.1 MB, free: 5.652 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001618/0.4184, allocations: 418.3 kB / 435.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002457/0.4187, allocations: 69.03 kB / 435.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4187, allocations: 0 / 435.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.398e-05/0.4187, allocations: 23.94 kB / 435.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.4192, allocations: 54.67 kB / 435.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006276/0.4198, allocations: 326.7 kB / 436 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.42, allocations: 0.7322 MB / 436.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.141e-05/0.4201, allocations: 25.92 kB / 436.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.916e-05/0.4201, allocations: 23.52 kB / 436.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.4201, allocations: 0 / 436.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of Templates: time 0.008143/0.4283, allocations: 2.457 MB / 439.2 MB, free: 4.398 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.537774387747049]