Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001515/0.001515, allocations: 110.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.001759, allocations: 208.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 59.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.255, allocations: 50.54 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002966/0.258, allocations: 1.886 MB / 411.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.2591, allocations: 0.6426 MB / 412.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.2593, allocations: 4 kB / 412.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.2594, allocations: 27.67 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.2596, allocations: 35.66 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.2599, allocations: 79.78 kB / 412.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.2601, allocations: 167.4 kB / 412.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.2603, allocations: 76.23 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.2605, allocations: 71.66 kB / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.2606, allocations: 79.61 kB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.2606, allocations: 12 kB / 413 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.2607, allocations: 27.98 kB / 413 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.99e-05/0.2608, allocations: 39.84 kB / 413.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.947e-05/0.2609, allocations: 87.41 kB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002662/0.2612, allocations: 198.9 kB / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.2612, allocations: 0 / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2612, allocations: 0 / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.2612, allocations: 0 / 413.3 MB, free: 14.19 MB / 334.1 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.00086/0.2621, allocations: 0.5041 MB / 413.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2621, allocations: 12.03 kB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.2623, allocations: 36.64 kB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.2626, allocations: 235.8 kB / 414.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.2626, allocations: 12.66 kB / 414.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.2626, allocations: 12.38 kB / 414.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003622/0.263, allocations: 200.1 kB / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.263, allocations: 8 kB / 414.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.263, allocations: 4 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.2631, allocations: 7.984 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003045/0.2634, allocations: 147.8 kB / 414.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.2644, allocations: 0.7739 MB / 415.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.2648, allocations: 165 kB / 415.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.2649, allocations: 77.75 kB / 415.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.265, allocations: 7.984 kB / 415.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.2652, allocations: 145 kB / 415.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2653, allocations: 0 / 415.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005542/0.2658, allocations: 257.8 kB / 415.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.2659, allocations: 85.11 kB / 416 MB, free: 11.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.2661, allocations: 207.1 kB / 416.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.2661, allocations: 33.7 kB / 416.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.2662, allocations: 140.1 kB / 416.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.2662, allocations: 43.44 kB / 416.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/0.2663, allocations: 45.7 kB / 416.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.2664, allocations: 334.8 kB / 416.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.2666, allocations: 71.95 kB / 416.9 MB, free: 10.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.2668, allocations: 122.8 kB / 417 MB, free: 10.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.2671, allocations: 210.8 kB / 417.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2671, allocations: 0 / 417.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004112/0.2675, allocations: 245.1 kB / 417.4 MB, free: 9.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2675, allocations: 4 kB / 417.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.2676, allocations: 4 kB / 417.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.2676, allocations: 4 kB / 417.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.2678, allocations: 39.91 kB / 417.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.2678, allocations: 4 kB / 417.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.268, allocations: 28.02 kB / 417.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.268, allocations: 8 kB / 417.5 MB, free: 9.691 MB / 334.1 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,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.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 0.0001368/0.2681, allocations: 153.6 kB / 417.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.2682, allocations: 15.81 kB / 417.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000426/0.2686, allocations: 206.9 kB / 417.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2686, allocations: 4 kB / 417.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2686, allocations: 4.203 kB / 417.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2686, allocations: 7.875 kB / 417.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.2689, allocations: 281.3 kB / 418.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2689, allocations: 0 / 418.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.269, allocations: 19.98 kB / 418.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.269, allocations: 0 / 418.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.269, allocations: 8 kB / 418.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2691, allocations: 0 / 418.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2691, allocations: 0 / 418.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.2694, allocations: 233.5 kB / 418.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.2695, allocations: 96.89 kB / 418.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.949e-05/0.2695, allocations: 4 kB / 418.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2697, allocations: 15.98 kB / 418.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.2697, allocations: 15.97 kB / 418.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.2698, allocations: 8 kB / 418.6 MB, free: 8.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001139/0.2699, allocations: 148.7 kB / 418.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2699, allocations: 0 / 418.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002699/0.2702, allocations: 47.83 kB / 418.8 MB, free: 8.344 MB / 334.1 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.0001464/0.2703, allocations: 105.4 kB / 418.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003787/0.2707, allocations: 172.1 kB / 419 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2707, allocations: 4.062 kB / 419 MB, free: 8.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.2709, allocations: 83.89 kB / 419.1 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.2712, allocations: 43.41 kB / 419.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006509/0.2719, allocations: 403 kB / 419.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.2722, allocations: 0.7358 MB / 420.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.416e-05/0.2722, allocations: 27.42 kB / 420.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2723, allocations: 0 / 420.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of Templates: time 0.004381/0.2766, allocations: 2.455 MB / 422.8 MB, free: 4.281 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches