Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00132/0.00132, allocations: 182.6 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.232/1.232, allocations: 205.4 MB / 224.2 MB, free: 9.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009005/0.0009005, allocations: 86.42 kB / 272.5 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002792, allocations: 12 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1856, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08003/0.2657, allocations: 79.42 MB / 456.4 MB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.2659, allocations: 75.97 kB / 456.5 MB, free: 1.086 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01543/0.2813, allocations: 5.722 MB / 462.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2813, allocations: 4 kB / 462.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.2814, allocations: 0 / 462.2 MB, free: 11.36 MB / 346.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.0006811/0.2821, allocations: 0.516 MB / 462.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.2821, allocations: 12.03 kB / 462.8 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/0.2822, allocations: 16.75 kB / 462.8 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.2825, allocations: 274.8 kB / 463.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.2826, allocations: 8.375 kB / 463.1 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.2826, allocations: 8.375 kB / 463.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.2828, allocations: 114.5 kB / 463.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.2828, allocations: 4.125 kB / 463.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.2829, allocations: 15.94 kB / 463.2 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2829, allocations: 0 / 463.2 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001427/0.283, allocations: 55.89 kB / 463.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006358/0.2837, allocations: 0.6183 MB / 463.9 MB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.2839, allocations: 123.9 kB / 464 MB, free: 9.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.284, allocations: 54.56 kB / 464 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.2841, allocations: 11.92 kB / 464.1 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002033/0.2843, allocations: 125.8 kB / 464.2 MB, free: 9.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.2843, allocations: 0 / 464.2 MB, free: 9.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.000421/0.2847, allocations: 181.3 kB / 464.4 MB, free: 8.996 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/0.2848, allocations: 132.5 kB / 464.5 MB, free: 8.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003047/0.2851, allocations: 284.9 kB / 464.8 MB, free: 8.547 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.2851, allocations: 29.7 kB / 464.8 MB, free: 8.512 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.294e-05/0.2852, allocations: 124.3 kB / 464.9 MB, free: 8.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.164e-05/0.2853, allocations: 31.72 kB / 464.9 MB, free: 8.352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.914e-06/0.2853, allocations: 8.125 kB / 465 MB, free: 8.344 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2854, allocations: 334.8 kB / 465.3 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.797e-05/0.2855, allocations: 31.98 kB / 465.3 MB, free: 7.977 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.2856, allocations: 81.98 kB / 465.4 MB, free: 7.875 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.2858, allocations: 100.2 kB / 465.5 MB, free: 7.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2858, allocations: 4 kB / 465.5 MB, free: 7.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002622/0.2861, allocations: 149.8 kB / 465.6 MB, free: 7.605 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2861, allocations: 8 kB / 465.6 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.2861, allocations: 128 / 465.6 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2861, allocations: 4 kB / 465.7 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.134e-05/0.2862, allocations: 23.92 kB / 465.7 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.2863, allocations: 4 kB / 465.7 MB, free: 7.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.2864, allocations: 15.98 kB / 465.7 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.2864, allocations: 4 kB / 465.7 MB, free: 7.547 MB / 346.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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000127/0.2865, allocations: 154.3 kB / 465.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.2866, allocations: 23.72 kB / 465.9 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002298/0.2868, allocations: 111.3 kB / 466 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.2868, allocations: 4 kB / 466 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2868, allocations: 0 / 466 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2868, allocations: 3.984 kB / 466 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.2871, allocations: 253.4 kB / 466.2 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2871, allocations: 4 kB / 466.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/0.2871, allocations: 7.984 kB / 466.2 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2871, allocations: 4 kB / 466.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.2872, allocations: 8 kB / 466.3 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2872, allocations: 7.875 kB / 466.3 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2872, allocations: 4 kB / 466.3 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.2875, allocations: 186.5 kB / 466.5 MB, free: 6.703 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.078e-05/0.2876, allocations: 96.92 kB / 466.5 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.2876, allocations: 11.98 kB / 466.6 MB, free: 6.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.2877, allocations: 15.98 kB / 466.6 MB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.2878, allocations: 11.98 kB / 466.6 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.2878, allocations: 4 kB / 466.6 MB, free: 6.547 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002062/0.288, allocations: 212.4 kB / 466.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.288, allocations: 0 / 466.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002532/0.2883, allocations: 48 kB / 466.8 MB, free: 6.297 MB / 346.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.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008747/0.2892, allocations: 436.4 kB / 467.3 MB, free: 5.887 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002813/0.2895, allocations: 99.89 kB / 467.4 MB, free: 5.789 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2895, allocations: 0 / 467.4 MB, free: 5.789 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.2896, allocations: 64.16 kB / 467.4 MB, free: 5.727 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.29, allocations: 42.12 kB / 467.5 MB, free: 5.684 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000644/0.2906, allocations: 387.7 kB / 467.9 MB, free: 5.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.291, allocations: 0.7322 MB / 468.6 MB, free: 4.512 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.207e-05/0.2911, allocations: 26.06 kB / 468.6 MB, free: 4.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.04e-05/0.2911, allocations: 23.42 kB / 468.6 MB, free: 4.469 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2911, allocations: 0 / 468.6 MB, free: 4.469 MB / 346.7 MB Notification: Performance of Templates: time 0.005515/0.2967, allocations: 2.645 MB / 471.3 MB, free: 1.828 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches