Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 192.8 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007818/0.0007818, allocations: 91.59 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003362, allocations: 8 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2581, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001564/0.2597, allocations: 1.536 MB / 413.6 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000962/0.2607, allocations: 0.8998 MB / 414.5 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.48e-05/0.2608, allocations: 4 kB / 414.5 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.261, allocations: 21.3 kB / 414.5 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.2611, allocations: 23.78 kB / 414.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.2614, allocations: 65.97 kB / 414.6 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.2615, allocations: 155.4 kB / 414.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.2617, allocations: 64.77 kB / 414.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.2618, allocations: 67.64 kB / 414.9 MB, free: 22.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.2619, allocations: 67.62 kB / 414.9 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.262, allocations: 4 kB / 414.9 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.407e-05/0.262, allocations: 16 kB / 415 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.756e-05/0.2621, allocations: 35.83 kB / 415 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.081e-05/0.2622, allocations: 97.19 kB / 415.1 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.2624, allocations: 156.9 kB / 415.2 MB, free: 22.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2624, allocations: 0 / 415.2 MB, free: 22.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2624, allocations: 0 / 415.2 MB, free: 22.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.2624, allocations: 0 / 415.2 MB, free: 22.61 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006902/0.2631, allocations: 0.4948 MB / 415.7 MB, free: 22.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2631, allocations: 8.031 kB / 415.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.2633, allocations: 40.64 kB / 415.8 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.2635, allocations: 240.5 kB / 416 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.2635, allocations: 8.656 kB / 416 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.2635, allocations: 16.38 kB / 416 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.2638, allocations: 199.2 kB / 416.2 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.2639, allocations: 8 kB / 416.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.2639, allocations: 4 kB / 416.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.2639, allocations: 4 kB / 416.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002529/0.2642, allocations: 147.8 kB / 416.4 MB, free: 21.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008291/0.265, allocations: 0.7896 MB / 417.2 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.2653, allocations: 173 kB / 417.4 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2654, allocations: 81.75 kB / 417.4 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.2655, allocations: 12.12 kB / 417.4 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.2657, allocations: 149 kB / 417.6 MB, free: 20.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.2657, allocations: 0 / 417.6 MB, free: 20.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004731/0.2661, allocations: 265.3 kB / 417.8 MB, free: 19.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.2662, allocations: 81.11 kB / 417.9 MB, free: 19.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.2663, allocations: 202.9 kB / 418.1 MB, free: 19.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.2664, allocations: 29.7 kB / 418.2 MB, free: 19.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.086e-05/0.2664, allocations: 144.1 kB / 418.3 MB, free: 19.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.2665, allocations: 39.45 kB / 418.3 MB, free: 19.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.158e-06/0.2665, allocations: 4 kB / 418.3 MB, free: 19.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.673e-05/0.2665, allocations: 334.8 kB / 418.7 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.2667, allocations: 71.95 kB / 418.7 MB, free: 18.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.2668, allocations: 137 kB / 418.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.2671, allocations: 223.3 kB / 419.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2671, allocations: 3.938 kB / 419.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003301/0.2674, allocations: 253.3 kB / 419.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2674, allocations: 8 kB / 419.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2675, allocations: 0 / 419.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2675, allocations: 4 kB / 419.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.2676, allocations: 35.92 kB / 419.4 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.2676, allocations: 0 / 419.4 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.2678, allocations: 39.81 kB / 419.4 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.2678, allocations: 12.03 kB / 419.4 MB, free: 18.1 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.41e-05/0.2679, allocations: 149.6 kB / 419.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.2679, allocations: 15.81 kB / 419.6 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003593/0.2683, allocations: 218.9 kB / 419.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2683, allocations: 4 kB / 419.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2683, allocations: 0 / 419.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2683, allocations: 0 / 419.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.2685, allocations: 277.3 kB / 420.1 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2685, allocations: 4 kB / 420.1 MB, free: 17.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.2686, allocations: 19.98 kB / 420.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2686, allocations: 0 / 420.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.2687, allocations: 4 kB / 420.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.2687, allocations: 0 / 420.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2687, allocations: 4 kB / 420.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002896/0.269, allocations: 237.6 kB / 420.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.199e-05/0.269, allocations: 96.86 kB / 420.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.2691, allocations: 7.984 kB / 420.4 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.2692, allocations: 23.98 kB / 420.5 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.2693, allocations: 19.97 kB / 420.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.2693, allocations: 4 kB / 420.5 MB, free: 16.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.783e-05/0.2694, allocations: 140.4 kB / 420.6 MB, free: 16.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2694, allocations: 0 / 420.6 MB, free: 16.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002144/0.2696, allocations: 43.84 kB / 420.7 MB, free: 16.74 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001234/0.2697, allocations: 115.2 kB / 420.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003052/0.27, allocations: 172 kB / 421 MB, free: 16.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.27, allocations: 384 / 421 MB, free: 16.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.2702, allocations: 91.89 kB / 421 MB, free: 16.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.2705, allocations: 51.72 kB / 421.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005156/0.271, allocations: 450.8 kB / 421.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.2712, allocations: 0.7319 MB / 422.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.753e-05/0.2713, allocations: 37.52 kB / 422.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/0.2713, allocations: 15.44 kB / 422.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2713, allocations: 0 / 422.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of Templates: time 0.003986/0.2753, allocations: 1.892 MB / 424.2 MB, free: 13.17 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches