Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008792/0.0008791, allocations: 174.1 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.6 MB / 223.7 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007531/0.0007529, allocations: 106.5 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.0002932, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2503, allocations: 47.58 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002259/0.2526, allocations: 1.504 MB / 378.1 MB, free: 44.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.2542, allocations: 1.113 MB / 379.2 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.2544, allocations: 1.062 kB / 379.2 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006573/0.255, allocations: 161.5 kB / 379.4 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.2554, allocations: 107.9 kB / 379.5 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.2558, allocations: 146.3 kB / 379.6 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.2561, allocations: 195.1 kB / 379.8 MB, free: 43.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.2563, allocations: 35.98 kB / 379.8 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.2565, allocations: 72.8 kB / 379.9 MB, free: 43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.2567, allocations: 80.83 kB / 380 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.797e-05/0.2567, allocations: 4.469 kB / 380 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001608/0.2569, allocations: 38.95 kB / 380 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.593e-05/0.2569, allocations: 47.12 kB / 380.1 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.141e-05/0.257, allocations: 95.12 kB / 380.2 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.2573, allocations: 204.3 kB / 380.4 MB, free: 42.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2574, allocations: 1.031 kB / 380.4 MB, free: 42.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2574, allocations: 4 kB / 380.4 MB, free: 42.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.2574, allocations: 0 / 380.4 MB, free: 42.69 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.0007872/0.2582, allocations: 0.4987 MB / 380.9 MB, free: 42.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.2582, allocations: 9.656 kB / 380.9 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.492e-05/0.2583, allocations: 25.83 kB / 380.9 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.2586, allocations: 260.4 kB / 381.2 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.2586, allocations: 3.719 kB / 381.2 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.2587, allocations: 12.41 kB / 381.2 MB, free: 41.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.2589, allocations: 110.4 kB / 381.3 MB, free: 41.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.2589, allocations: 3.938 kB / 381.3 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.2589, allocations: 5.062 kB / 381.3 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2589, allocations: 6.781 kB / 381.3 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.2591, allocations: 51.03 kB / 381.4 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.2597, allocations: 0.6034 MB / 382 MB, free: 41.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.2599, allocations: 121.6 kB / 382.1 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.279e-05/0.26, allocations: 49.03 kB / 382.1 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.2601, allocations: 10.38 kB / 382.1 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.2603, allocations: 120.4 kB / 382.3 MB, free: 40.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.2603, allocations: 3.938 kB / 382.3 MB, free: 40.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.000429/0.2607, allocations: 183.8 kB / 382.4 MB, free: 40.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.2608, allocations: 131.3 kB / 382.6 MB, free: 40.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.2611, allocations: 284.8 kB / 382.8 MB, free: 40.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2611, allocations: 30.86 kB / 382.9 MB, free: 40.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.2612, allocations: 129 kB / 383 MB, free: 40.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.824e-05/0.2612, allocations: 24.53 kB / 383 MB, free: 40.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/0.2612, allocations: 1.375 kB / 383 MB, free: 40.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.2613, allocations: 344.3 kB / 383.4 MB, free: 39.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.699e-05/0.2614, allocations: 30.11 kB / 383.4 MB, free: 39.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.2615, allocations: 79.08 kB / 383.5 MB, free: 39.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.2617, allocations: 97.12 kB / 383.6 MB, free: 39.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2617, allocations: 0 / 383.6 MB, free: 39.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002578/0.2619, allocations: 147.1 kB / 383.7 MB, free: 39.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.262, allocations: 9.281 kB / 383.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.262, allocations: 4.984 kB / 383.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.262, allocations: 2.312 kB / 383.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.624e-05/0.2621, allocations: 16.31 kB / 383.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2621, allocations: 1.25 kB / 383.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.2622, allocations: 28.2 kB / 383.8 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.2623, allocations: 4 kB / 383.8 MB, free: 39.64 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 ($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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.2624, allocations: 146.6 kB / 383.9 MB, free: 39.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/0.2624, allocations: 21.75 kB / 383.9 MB, free: 39.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.167e-05/0.2625, allocations: 25.89 kB / 384 MB, free: 39.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2625, allocations: 2.469 kB / 384 MB, free: 39.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2625, allocations: 5.125 kB / 384 MB, free: 39.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.2625, allocations: 7.922 kB / 384 MB, free: 39.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.2627, allocations: 244 kB / 384.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2627, allocations: 5.594 kB / 384.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.003e-05/0.2627, allocations: 8.594 kB / 384.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2627, allocations: 1.5 kB / 384.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2628, allocations: 9.484 kB / 384.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2628, allocations: 0.9688 kB / 384.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2628, allocations: 1.438 kB / 384.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.2631, allocations: 180.1 kB / 384.4 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.622e-05/0.2631, allocations: 99.53 kB / 384.5 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.2632, allocations: 6.281 kB / 384.5 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.841e-05/0.2633, allocations: 17.11 kB / 384.5 MB, free: 38.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.2633, allocations: 14.73 kB / 384.5 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.2634, allocations: 4.75 kB / 384.6 MB, free: 38.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001795/0.2635, allocations: 210.9 kB / 384.8 MB, free: 38.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2635, allocations: 0.9375 kB / 384.8 MB, free: 38.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.2638, allocations: 43.45 kB / 384.8 MB, free: 38.78 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.0009884/0.2648, allocations: 495 kB / 385.3 MB, free: 38.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000279/0.2651, allocations: 93.36 kB / 385.4 MB, free: 38.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2651, allocations: 0 / 385.4 MB, free: 38.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.2652, allocations: 54.45 kB / 385.4 MB, free: 38.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.2656, allocations: 46.97 kB / 385.5 MB, free: 38.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005992/0.2662, allocations: 392.3 kB / 385.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.2664, allocations: 0.7317 MB / 386.6 MB, free: 37.35 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.731e-05/0.2665, allocations: 33.19 kB / 386.6 MB, free: 37.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.047e-05/0.2666, allocations: 18.25 kB / 386.6 MB, free: 37.33 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2666, allocations: 0 / 386.6 MB, free: 37.33 MB / 298.7 MB Notification: Performance of Templates: time 0.005762/0.2723, allocations: 2.526 MB / 389.2 MB, free: 35.46 MB / 298.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/jenkins/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