Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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.001688/0.001688, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002105/0.002105, allocations: 186.8 kB / 24.45 MB, free: 3.961 MB / 14.72 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.484/1.484, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.1 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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 55.86 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2382, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003416/0.2416, allocations: 1.812 MB / 425.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.2434, allocations: 0.9782 MB / 426.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.174e-05/0.2435, allocations: 4 kB / 426.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006571/0.2442, allocations: 171.5 kB / 426.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000336/0.2445, allocations: 131.5 kB / 426.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.245, allocations: 175.2 kB / 427.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002756/0.2453, allocations: 211.3 kB / 427.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.2454, allocations: 13.75 kB / 427.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.2455, allocations: 79.69 kB / 427.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.2457, allocations: 99.52 kB / 427.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.2457, allocations: 12 kB / 427.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.2458, allocations: 59.95 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.306e-05/0.2459, allocations: 43.84 kB / 427.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.642e-05/0.246, allocations: 63.61 kB / 427.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.2464, allocations: 213.8 kB / 427.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2464, allocations: 0 / 427.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2464, allocations: 3.938 kB / 427.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.2464, allocations: 4 kB / 427.8 MB, free: 10.45 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.0009019/0.2473, allocations: 462.7 kB / 428.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.2473, allocations: 12.03 kB / 428.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.59e-05/0.2474, allocations: 20.8 kB / 428.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.2477, allocations: 205 kB / 428.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.2477, allocations: 0 / 428.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/0.2477, allocations: 12 kB / 428.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.248, allocations: 109 kB / 428.7 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.248, allocations: 4 kB / 428.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.248, allocations: 0 / 428.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.248, allocations: 4 kB / 428.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001538/0.2482, allocations: 55.89 kB / 428.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006737/0.2488, allocations: 0.5399 MB / 429.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.2491, allocations: 119.9 kB / 429.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.2492, allocations: 54.55 kB / 429.4 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.2493, allocations: 4 kB / 429.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.2495, allocations: 121.8 kB / 429.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.2495, allocations: 0 / 429.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004778/0.25, allocations: 185.4 kB / 429.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.362e-05/0.2501, allocations: 106.8 kB / 429.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.2504, allocations: 292.8 kB / 430.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.2504, allocations: 25.7 kB / 430.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.301e-05/0.2505, allocations: 120.1 kB / 430.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.146e-05/0.2505, allocations: 39.91 kB / 430.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.2506, allocations: 29.7 kB / 430.3 MB, free: 7.734 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.2508, allocations: 330.8 kB / 430.7 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.441e-05/0.2509, allocations: 31.97 kB / 430.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.251, allocations: 106.8 kB / 430.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.2512, allocations: 96.2 kB / 430.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2512, allocations: 0 / 430.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002898/0.2515, allocations: 149.5 kB / 431 MB, free: 6.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2515, allocations: 7.938 kB / 431 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.2515, allocations: 0 / 431 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.2515, allocations: 4 kB / 431 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.571e-05/0.2516, allocations: 16.56 kB / 431.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2516, allocations: 3.938 kB / 431.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.2517, allocations: 23.88 kB / 431.1 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.2517, allocations: 4 kB / 431.1 MB, free: 6.922 MB / 334.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.0001482/0.2519, allocations: 154.8 kB / 431.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.2519, allocations: 19.86 kB / 431.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/0.2522, allocations: 123.4 kB / 431.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2522, allocations: 0 / 431.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2522, allocations: 7.938 kB / 431.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2522, allocations: 0 / 431.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.2524, allocations: 173.2 kB / 431.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.2524, allocations: 4 kB / 431.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.581e-05/0.2524, allocations: 7.938 kB / 431.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.2524, allocations: 4 kB / 431.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.2525, allocations: 7.984 kB / 431.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.2525, allocations: 0 / 431.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2525, allocations: 4 kB / 431.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003331/0.2528, allocations: 186.6 kB / 431.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.89e-05/0.2528, allocations: 19.84 kB / 431.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.2529, allocations: 7.984 kB / 431.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.253, allocations: 11.98 kB / 431.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.524e-05/0.253, allocations: 19.86 kB / 431.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.2531, allocations: 4 kB / 431.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002361/0.2533, allocations: 220.5 kB / 432 MB, free: 5.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2533, allocations: 0 / 432 MB, free: 5.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.2536, allocations: 35.94 kB / 432.1 MB, free: 5.859 MB / 334.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.001603/0.2552, allocations: 451.8 kB / 432.5 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002771/0.2554, allocations: 87.89 kB / 432.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2554, allocations: 0 / 432.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.2556, allocations: 64.08 kB / 432.7 MB, free: 5.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.2559, allocations: 49.73 kB / 432.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006574/0.2566, allocations: 382 kB / 433.1 MB, free: 5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.2567, allocations: 131.4 kB / 433.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.068e-05/0.2568, allocations: 23.44 kB / 433.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2568, allocations: 0 / 433.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of Templates: time 0.005361/0.2621, allocations: 2.927 MB / 436.2 MB, free: 1.898 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.48601107718423]