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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 108.3 kB / 18.4 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 184.2 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.234/1.234, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 43.94 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07954/0.08079, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003315/0.08414, allocations: 1.822 MB / 377.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.08583, allocations: 0.9634 MB / 378.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.086, allocations: 0 / 378.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006754/0.08671, allocations: 163.5 kB / 378.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003701/0.0871, allocations: 123.5 kB / 378.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004324/0.08754, allocations: 155.6 kB / 379 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.08783, allocations: 211.3 kB / 379.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.08796, allocations: 25.53 kB / 379.2 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.08811, allocations: 83.62 kB / 379.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.08826, allocations: 87.67 kB / 379.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.0883, allocations: 8 kB / 379.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.08845, allocations: 51.97 kB / 379.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.696e-05/0.08855, allocations: 59.77 kB / 379.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.747e-05/0.08864, allocations: 71.53 kB / 379.6 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003289/0.08898, allocations: 215.3 kB / 379.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.089, allocations: 4 kB / 379.8 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.08901, allocations: 0 / 379.8 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.08903, allocations: 0 / 379.8 MB, free: 0.5547 MB / 318.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.179/0.268, allocations: 0.5259 MB / 380.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.268, allocations: 10.8 kB / 380.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.2681, allocations: 23.81 kB / 380.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.2684, allocations: 256 kB / 380.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.2684, allocations: 6.75 kB / 380.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.2685, allocations: 6.391 kB / 380.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.2687, allocations: 119 kB / 380.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.2687, allocations: 0 / 380.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.2688, allocations: 8.812 kB / 380.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2688, allocations: 1.375 kB / 380.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.2689, allocations: 46.7 kB / 380.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005083/0.2694, allocations: 0.6087 MB / 381.4 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.2696, allocations: 125.4 kB / 381.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.299e-05/0.2697, allocations: 46.86 kB / 381.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.2698, allocations: 2.297 kB / 381.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.27, allocations: 130.8 kB / 381.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.27, allocations: 0 / 381.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003974/0.2704, allocations: 174.2 kB / 381.9 MB, free: 12.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.2704, allocations: 137.7 kB / 382 MB, free: 12.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.2707, allocations: 282.2 kB / 382.3 MB, free: 12.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.2707, allocations: 32.16 kB / 382.3 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.2708, allocations: 126 kB / 382.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.2708, allocations: 26.14 kB / 382.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.761e-05/0.2708, allocations: 37.83 kB / 382.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.254e-05/0.2709, allocations: 340.1 kB / 382.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.02e-05/0.271, allocations: 29.28 kB / 382.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.435e-05/0.2711, allocations: 89.66 kB / 383 MB, free: 11.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.2712, allocations: 95 kB / 383.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2712, allocations: 0 / 383.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002267/0.2715, allocations: 142.9 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2715, allocations: 7.469 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2715, allocations: 2.172 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.2715, allocations: 4.375 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.116e-05/0.2716, allocations: 18.42 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.2716, allocations: 2.125 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.2717, allocations: 18.58 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.2718, allocations: 5.219 kB / 383.2 MB, free: 11.41 MB / 318.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 9.44e-05/0.2719, allocations: 151.6 kB / 383.4 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.2719, allocations: 27.45 kB / 383.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.953e-05/0.272, allocations: 28.08 kB / 383.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.272, allocations: 2.75 kB / 383.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.272, allocations: 0.8906 kB / 383.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.272, allocations: 1.375 kB / 383.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.2722, allocations: 240.3 kB / 383.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2722, allocations: 1.422 kB / 383.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.063e-05/0.2722, allocations: 6.375 kB / 383.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.2722, allocations: 1.156 kB / 383.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.2722, allocations: 2.797 kB / 383.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.2722, allocations: 5.594 kB / 383.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2723, allocations: 2.234 kB / 383.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003023/0.2726, allocations: 181.3 kB / 383.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.2726, allocations: 101.1 kB / 384 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.547e-05/0.2727, allocations: 4.156 kB / 384 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.586e-05/0.2728, allocations: 13.78 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.786e-05/0.2728, allocations: 19.25 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.2728, allocations: 6.031 kB / 384 MB, free: 10.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.2731, allocations: 214 kB / 384.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2731, allocations: 0 / 384.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.2734, allocations: 35.59 kB / 384.3 MB, free: 10.7 MB / 318.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.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.0008621/0.2742, allocations: 431.2 kB / 384.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002511/0.2745, allocations: 90.86 kB / 384.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2745, allocations: 1.094 kB / 384.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.2746, allocations: 52.11 kB / 384.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.275, allocations: 72.17 kB / 384.9 MB, free: 10.31 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005027/0.2755, allocations: 377.5 kB / 385.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.2757, allocations: 0.7305 MB / 386 MB, free: 9.348 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.094e-05/0.2757, allocations: 19.5 kB / 386 MB, free: 9.34 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2757, allocations: 0 / 386 MB, free: 9.34 MB / 318.1 MB Notification: Performance of Templates: time 0.004903/0.2806, allocations: 2.894 MB / 388.9 MB, free: 8.996 MB / 318.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches