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.001125/0.001125, allocations: 114.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001907/0.001907, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 59.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2566, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002817/0.2595, allocations: 1.879 MB / 411.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.2605, allocations: 0.6427 MB / 412.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.17e-05/0.2606, allocations: 7.938 kB / 412.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.2608, allocations: 27.67 kB / 412.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.2609, allocations: 39.66 kB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.2612, allocations: 75.8 kB / 412.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.2614, allocations: 167.4 kB / 412.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.2616, allocations: 76.25 kB / 412.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.2618, allocations: 75.64 kB / 412.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.2619, allocations: 71.62 kB / 413 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.407e-05/0.262, allocations: 16 kB / 413 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.285e-05/0.262, allocations: 23.98 kB / 413 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.511e-05/0.2621, allocations: 47.83 kB / 413.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.158e-05/0.2622, allocations: 87.42 kB / 413.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.2625, allocations: 194.9 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2625, allocations: 0 / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2625, allocations: 0 / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2625, allocations: 0 / 413.3 MB, free: 14.18 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.0008157/0.2633, allocations: 0.5042 MB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.2633, allocations: 11.97 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.2635, allocations: 36.64 kB / 413.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.2638, allocations: 235.9 kB / 414.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.2638, allocations: 8.656 kB / 414.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.2639, allocations: 20.31 kB / 414.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.2642, allocations: 200.1 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2642, allocations: 0 / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.2642, allocations: 4 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.2643, allocations: 8 kB / 414.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002858/0.2646, allocations: 143.8 kB / 414.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.2656, allocations: 0.7779 MB / 415.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.2659, allocations: 173 kB / 415.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.2661, allocations: 77.75 kB / 415.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.2661, allocations: 3.984 kB / 415.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.2663, allocations: 137 kB / 415.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.2664, allocations: 0 / 415.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005432/0.2669, allocations: 261.9 kB / 415.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.267, allocations: 85.11 kB / 416 MB, free: 11.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.2672, allocations: 207.1 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.2672, allocations: 33.7 kB / 416.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.425e-05/0.2673, allocations: 140.1 kB / 416.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.2673, allocations: 39.45 kB / 416.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.601e-05/0.2674, allocations: 45.7 kB / 416.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2676, allocations: 334.8 kB / 416.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.2677, allocations: 67.95 kB / 416.9 MB, free: 10.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.2679, allocations: 130.7 kB / 417 MB, free: 10.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.2682, allocations: 206.7 kB / 417.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2682, allocations: 7.938 kB / 417.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004096/0.2687, allocations: 241.1 kB / 417.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2687, allocations: 8 kB / 417.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.2687, allocations: 0 / 417.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2687, allocations: 4 kB / 417.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.2689, allocations: 31.92 kB / 417.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.2689, allocations: 12.17 kB / 417.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.2691, allocations: 27.83 kB / 417.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.2691, allocations: 8 kB / 417.5 MB, free: 9.684 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.0001263/0.2692, allocations: 153.6 kB / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.2692, allocations: 15.81 kB / 417.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004316/0.2697, allocations: 210.9 kB / 417.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.2697, allocations: 8.109 kB / 417.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2697, allocations: 3.938 kB / 417.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.598e-05/0.2698, allocations: 100.8 kB / 418 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.2698, allocations: 0 / 418 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/0.2699, allocations: 15.98 kB / 418 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.737e-05/0.27, allocations: 23.91 kB / 418 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004872/0.2705, allocations: 356.1 kB / 418.4 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004197/0.2709, allocations: 449.7 kB / 418.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001489/0.2711, allocations: 72.34 kB / 418.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001143/0.2712, allocations: 144.7 kB / 419 MB, free: 8.105 MB / 334.1 MB Notification: Performance of Backend: time 1.583e-06/0.2712, allocations: 0 / 419 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006592/0.2719, allocations: 212.7 kB / 419.2 MB, free: 7.895 MB / 334.1 MB Notification: Performance of SimCode: time 0.000785/0.2727, allocations: 0.7716 MB / 420 MB, free: 7.074 MB / 334.1 MB Notification: Performance of Templates: time 0.005535/0.2782, allocations: 2.569 MB / 422.6 MB, free: 4.523 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