Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 107.1 kB / 18.4 MB, free: 4.676 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.0009737/0.0009738, allocations: 188.5 kB / 19.34 MB, free: 3.75 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.251/1.251, 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.001152/0.001152, allocations: 47.94 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07077/0.07193, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002801/0.07476, allocations: 1.852 MB / 377.7 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.07585, allocations: 0.6357 MB / 378.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.07597, allocations: 7.938 kB / 378.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.07611, allocations: 23.67 kB / 378.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.07626, allocations: 31.67 kB / 378.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.07652, allocations: 67.86 kB / 378.4 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.07675, allocations: 163.5 kB / 378.6 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.07692, allocations: 77.48 kB / 378.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.07705, allocations: 71.64 kB / 378.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.0772, allocations: 79.62 kB / 378.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.07724, allocations: 15.94 kB / 378.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.314e-05/0.07732, allocations: 27.92 kB / 378.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.0774, allocations: 39.84 kB / 378.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.268e-05/0.07749, allocations: 79.53 kB / 379 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.07772, allocations: 191.2 kB / 379.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.07773, allocations: 0 / 379.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.07774, allocations: 0 / 379.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.07775, allocations: 0 / 379.2 MB, free: 1.211 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000816/0.07857, allocations: 0.5104 MB / 379.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.07861, allocations: 8.031 kB / 379.7 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.438e-05/0.07867, allocations: 24.66 kB / 379.7 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.07893, allocations: 239.7 kB / 379.9 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.07895, allocations: 8.656 kB / 379.9 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.07899, allocations: 20.38 kB / 380 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003478/0.07934, allocations: 195.3 kB / 380.2 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.07936, allocations: 0 / 380.2 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.07938, allocations: 4 kB / 380.2 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.07941, allocations: 8 kB / 380.2 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1453/0.2247, allocations: 145 kB / 380.3 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.2258, allocations: 0.7735 MB / 381.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.2261, allocations: 160.4 kB / 381.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.2262, allocations: 76.05 kB / 381.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.2263, allocations: 12.36 kB / 381.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.2265, allocations: 148.1 kB / 381.5 MB, free: 11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.924e-06/0.2265, allocations: 0 / 381.5 MB, free: 11 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005247/0.227, allocations: 250 kB / 381.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.099e-05/0.2271, allocations: 83.78 kB / 381.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.2272, allocations: 208.9 kB / 382 MB, free: 10.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.2272, allocations: 27.08 kB / 382 MB, free: 10.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.089e-05/0.2273, allocations: 142.2 kB / 382.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.806e-05/0.2273, allocations: 41.95 kB / 382.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.257e-05/0.2274, allocations: 45.69 kB / 382.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.504e-05/0.2275, allocations: 334.9 kB / 382.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.2276, allocations: 68.2 kB / 382.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.2278, allocations: 131.7 kB / 382.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.2281, allocations: 199.5 kB / 383 MB, free: 10.17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2281, allocations: 0.6562 kB / 383 MB, free: 10.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004192/0.2285, allocations: 252.3 kB / 383.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2285, allocations: 6.828 kB / 383.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2286, allocations: 2.25 kB / 383.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.2286, allocations: 3.156 kB / 383.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.2288, allocations: 33.17 kB / 383.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.2288, allocations: 10.55 kB / 383.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.229, allocations: 31.62 kB / 383.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.229, allocations: 9.234 kB / 383.3 MB, free: 10.12 MB / 318.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.0001008/0.2291, allocations: 145.9 kB / 383.5 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.2291, allocations: 24.81 kB / 383.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000449/0.2296, allocations: 210.4 kB / 383.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2296, allocations: 0.7969 kB / 383.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2296, allocations: 1.156 kB / 383.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.318e-05/0.2296, allocations: 96.91 kB / 383.8 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.899e-05/0.2297, allocations: 5.312 kB / 383.8 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.2298, allocations: 21 kB / 383.8 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.2299, allocations: 15.8 kB / 383.8 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004518/0.2303, allocations: 363.5 kB / 384.2 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003453/0.2307, allocations: 441.9 kB / 384.6 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001477/0.2309, allocations: 85.38 kB / 384.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.826e-05/0.231, allocations: 148.4 kB / 384.8 MB, free: 9.281 MB / 318.1 MB Notification: Performance of Backend: time 4.51e-07/0.231, allocations: 0 / 384.8 MB, free: 9.281 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005836/0.2316, allocations: 180.7 kB / 385 MB, free: 9.219 MB / 318.1 MB Notification: Performance of SimCode: time 0.0006307/0.2322, allocations: 0.792 MB / 385.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of Templates: time 0.005568/0.2378, allocations: 2.527 MB / 388.3 MB, free: 8.383 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches