Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.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.001619/0.001619, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001648/0.001648, allocations: 211.4 kB / 24.48 MB, free: 3.977 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 2.064/2.064, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 51.86 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3429, allocations: 53.36 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004896/0.3477, allocations: 1.825 MB / 434.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003695/0.3514, allocations: 1.122 MB / 435.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.3516, allocations: 0 / 435.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000925/0.3525, allocations: 175.5 kB / 435.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000741/0.3532, allocations: 175.3 kB / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006589/0.3539, allocations: 143.6 kB / 435.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004132/0.3543, allocations: 219.4 kB / 436 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.3544, allocations: 13.75 kB / 436 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.3547, allocations: 83.62 kB / 436.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.3549, allocations: 99.59 kB / 436.2 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.3549, allocations: 11.94 kB / 436.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.3551, allocations: 63.95 kB / 436.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.3553, allocations: 51.84 kB / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.3554, allocations: 63.53 kB / 436.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005241/0.3559, allocations: 229.8 kB / 436.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3559, allocations: 0 / 436.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3559, allocations: 0 / 436.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.3559, allocations: 0 / 436.6 MB, free: 2.488 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001322/0.3572, allocations: 470.7 kB / 437 MB, free: 1.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.3573, allocations: 12.03 kB / 437 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.726e-05/0.3574, allocations: 24.73 kB / 437.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.3579, allocations: 205.2 kB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.3579, allocations: 4.375 kB / 437.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.3579, allocations: 12.12 kB / 437.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.3583, allocations: 113 kB / 437.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3583, allocations: 0 / 437.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.3584, allocations: 4 kB / 437.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.3584, allocations: 7.984 kB / 437.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.3587, allocations: 51.91 kB / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009503/0.3596, allocations: 0.5399 MB / 438 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004627/0.3601, allocations: 123.9 kB / 438.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.3603, allocations: 54.48 kB / 438.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.3603, allocations: 4 kB / 438.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003542/0.3606, allocations: 117.9 kB / 438.3 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.123e-06/0.3607, allocations: 0 / 438.3 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008025/0.3615, allocations: 185.8 kB / 438.5 MB, free: 412 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.344e-05/0.3615, allocations: 106.8 kB / 438.6 MB, free: 280 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005493/0.3621, allocations: 289.1 kB / 438.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.3621, allocations: 37.64 kB / 438.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.3623, allocations: 120.1 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.801e-05/0.3624, allocations: 27.75 kB / 439 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.3625, allocations: 37.7 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.3627, allocations: 338.8 kB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.3628, allocations: 27.98 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.3631, allocations: 110.9 kB / 439.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.3634, allocations: 100.3 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3634, allocations: 0 / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005051/0.3639, allocations: 145.5 kB / 439.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3639, allocations: 4 kB / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3639, allocations: 0 / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.364, allocations: 4.094 kB / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.3641, allocations: 23.92 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3641, allocations: 7.875 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.3643, allocations: 15.98 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.3643, allocations: 4 kB / 439.8 MB, free: 14.93 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: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0002784/0.3646, allocations: 150.3 kB / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.3646, allocations: 23.8 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004236/0.3651, allocations: 119.4 kB / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3651, allocations: 4 kB / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3651, allocations: 4.125 kB / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3651, allocations: 0 / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003307/0.3654, allocations: 185.1 kB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3654, allocations: 0 / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.218e-05/0.3655, allocations: 4 kB / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3655, allocations: 4 kB / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.3655, allocations: 0 / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.3655, allocations: 7.938 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3655, allocations: 0 / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.366, allocations: 189.6 kB / 440.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.006e-05/0.3661, allocations: 23.91 kB / 440.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.253e-05/0.3661, allocations: 8 kB / 440.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.3663, allocations: 7.984 kB / 440.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.016e-05/0.3664, allocations: 19.97 kB / 440.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.3664, allocations: 4 kB / 440.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000382/0.3668, allocations: 220.4 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3668, allocations: 0 / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004939/0.3673, allocations: 51.81 kB / 440.8 MB, free: 13.86 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: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * 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 (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002411/0.3697, allocations: 453.1 kB / 441.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004927/0.3702, allocations: 91.89 kB / 441.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.3702, allocations: 0 / 441.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.3705, allocations: 51.91 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005885/0.3711, allocations: 49 kB / 441.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009811/0.372, allocations: 357.1 kB / 441.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/0.3722, allocations: 123.6 kB / 441.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.3724, allocations: 25.62 kB / 442 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.417e-05/0.3724, allocations: 19.44 kB / 442 MB, free: 12.83 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3724, allocations: 4 kB / 442 MB, free: 12.83 MB / 350.1 MB Notification: Performance of Templates: time 0.01168/0.3841, allocations: 3.04 MB / 445 MB, free: 9.828 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.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: 6.376206373999594]