Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009639/0.0009639, allocations: 101.7 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009799/0.00098, allocations: 47.92 kB / 356.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2469, allocations: 50.44 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003236/0.2502, allocations: 1.916 MB / 408.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.2519, allocations: 1.18 MB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.252, allocations: 4 kB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005969/0.2526, allocations: 161 kB / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.2529, allocations: 139.5 kB / 410.4 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003605/0.2533, allocations: 154.6 kB / 410.6 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002152/0.2535, allocations: 223.3 kB / 410.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.2536, allocations: 25.53 kB / 410.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.621e-05/0.2537, allocations: 79.62 kB / 410.9 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.2538, allocations: 83.62 kB / 411 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.18e-05/0.2538, allocations: 4 kB / 411 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.254, allocations: 55.89 kB / 411 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.36e-05/0.254, allocations: 39.84 kB / 411.1 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.731e-05/0.2541, allocations: 71.53 kB / 411.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.2543, allocations: 216.8 kB / 411.4 MB, free: 23.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2543, allocations: 0 / 411.4 MB, free: 23.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2544, allocations: 0 / 411.4 MB, free: 23.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.2544, allocations: 0 / 411.4 MB, free: 23.51 MB / 298.7 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.0007494/0.2551, allocations: 0.5351 MB / 411.9 MB, free: 22.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.2552, allocations: 8.031 kB / 411.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/0.2552, allocations: 24.66 kB / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.2555, allocations: 258.9 kB / 412.2 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.2555, allocations: 4.375 kB / 412.2 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.2555, allocations: 12.12 kB / 412.2 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.2557, allocations: 117.9 kB / 412.3 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2557, allocations: 0 / 412.3 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.2558, allocations: 7.938 kB / 412.3 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.2558, allocations: 3.984 kB / 412.3 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.2559, allocations: 59.89 kB / 412.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004876/0.2564, allocations: 0.6026 MB / 413 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.2566, allocations: 127.9 kB / 413.1 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.603e-05/0.2567, allocations: 46.56 kB / 413.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.2568, allocations: 4 kB / 413.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.257, allocations: 123.3 kB / 413.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.472e-06/0.257, allocations: 0 / 413.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.000401/0.2574, allocations: 173.4 kB / 413.4 MB, free: 21.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.2574, allocations: 128.5 kB / 413.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.2577, allocations: 304.8 kB / 413.9 MB, free: 20.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.2577, allocations: 25.7 kB / 413.9 MB, free: 20.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.292e-05/0.2578, allocations: 132.3 kB / 414 MB, free: 20.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.2578, allocations: 27.91 kB / 414.1 MB, free: 20.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.2578, allocations: 33.7 kB / 414.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.535e-05/0.2579, allocations: 338.8 kB / 414.4 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.2581, allocations: 28.48 kB / 414.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.2582, allocations: 89.86 kB / 414.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.2583, allocations: 100.2 kB / 414.6 MB, free: 19.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.2583, allocations: 0 / 414.6 MB, free: 19.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002232/0.2586, allocations: 137.3 kB / 414.8 MB, free: 19.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.2586, allocations: 18.83 kB / 414.8 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2586, allocations: 4 kB / 414.8 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.2586, allocations: 0 / 414.8 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.354e-05/0.2587, allocations: 12 kB / 414.8 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.2587, allocations: 4 kB / 414.8 MB, free: 19.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.2588, allocations: 19.92 kB / 414.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.2589, allocations: 7.938 kB / 414.8 MB, free: 19.7 MB / 298.7 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.0001041/0.259, allocations: 151.2 kB / 415 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.259, allocations: 27.72 kB / 415 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.178e-05/0.2591, allocations: 25.7 kB / 415 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2591, allocations: 0 / 415 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2591, allocations: 4 kB / 415 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2591, allocations: 3.938 kB / 415 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.2593, allocations: 249.4 kB / 415.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2593, allocations: 4.125 kB / 415.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.709e-05/0.2593, allocations: 7.984 kB / 415.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2593, allocations: 0 / 415.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.2594, allocations: 8 kB / 415.3 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2594, allocations: 4 kB / 415.3 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2594, allocations: 4 kB / 415.3 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005233/0.2599, allocations: 0.7899 MB / 416.1 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.937e-05/0.26, allocations: 104.8 kB / 416.2 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.26, allocations: 11.94 kB / 416.2 MB, free: 18.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.2601, allocations: 11.98 kB / 416.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.2602, allocations: 11.98 kB / 416.2 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.2602, allocations: 8 kB / 416.2 MB, free: 18.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.2604, allocations: 220.4 kB / 416.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2604, allocations: 0 / 416.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003579/0.2607, allocations: 36 kB / 416.5 MB, free: 17.89 MB / 298.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: 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.0009726/0.2617, allocations: 424.5 kB / 416.9 MB, free: 17.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002461/0.262, allocations: 87.84 kB / 417 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.262, allocations: 3.938 kB / 417 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.2621, allocations: 51.98 kB / 417 MB, free: 17.47 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.2625, allocations: 55.17 kB / 417.1 MB, free: 17.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005943/0.2631, allocations: 0.5056 MB / 417.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.2633, allocations: 0.7438 MB / 418.3 MB, free: 16.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.176e-05/0.2634, allocations: 21.55 kB / 418.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.2634, allocations: 23.42 kB / 418.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2634, allocations: 0 / 418.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of Templates: time 0.005152/0.2686, allocations: 2.656 MB / 421 MB, free: 13.41 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches