Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001566/0.001566, allocations: 110.5 kB / 17.75 MB, free: 5.309 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.001814/0.001814, allocations: 183 kB / 18.68 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009934/0.0009934, allocations: 51.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2412, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002892/0.2441, allocations: 1.867 MB / 403.3 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009807/0.2451, allocations: 0.5921 MB / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.137e-05/0.2452, allocations: 0 / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.2453, allocations: 31.67 kB / 403.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.2455, allocations: 35.66 kB / 403.9 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.2458, allocations: 63.86 kB / 404 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002167/0.246, allocations: 167.4 kB / 404.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.2462, allocations: 65.64 kB / 404.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.2463, allocations: 75.64 kB / 404.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.2465, allocations: 75.61 kB / 404.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.2465, allocations: 16 kB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.855e-05/0.2466, allocations: 24 kB / 404.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.72e-05/0.2467, allocations: 43.84 kB / 404.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.924e-05/0.2468, allocations: 91.39 kB / 404.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.247, allocations: 180.7 kB / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.247, allocations: 0 / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.247, allocations: 0 / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.247, allocations: 0 / 404.7 MB, free: 5.527 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.0008205/0.2478, allocations: 0.5063 MB / 405.2 MB, free: 4.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.2479, allocations: 8.031 kB / 405.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.743e-05/0.2479, allocations: 24.66 kB / 405.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002567/0.2482, allocations: 243.6 kB / 405.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.2482, allocations: 12.66 kB / 405.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/0.2483, allocations: 15.94 kB / 405.5 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000339/0.2486, allocations: 199.8 kB / 405.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2486, allocations: 0 / 405.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.2486, allocations: 8 kB / 405.7 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.2487, allocations: 4 kB / 405.7 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002893/0.249, allocations: 151.8 kB / 405.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.25, allocations: 0.77 MB / 406.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.2503, allocations: 165.1 kB / 406.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.2505, allocations: 73.75 kB / 406.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.2505, allocations: 4 kB / 406.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.2508, allocations: 153 kB / 407 MB, free: 3.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.2508, allocations: 0 / 407 MB, free: 3.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000557/0.2514, allocations: 253.5 kB / 407.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.2514, allocations: 85.11 kB / 407.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.2516, allocations: 202.9 kB / 407.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.2516, allocations: 25.7 kB / 407.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2518, allocations: 156.1 kB / 407.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.2518, allocations: 43.36 kB / 407.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.832e-05/0.2519, allocations: 41.7 kB / 407.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.252, allocations: 330.8 kB / 408.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.2522, allocations: 71.95 kB / 408.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.2523, allocations: 134.5 kB / 408.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.2527, allocations: 206.6 kB / 408.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2527, allocations: 3.938 kB / 408.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004352/0.2531, allocations: 241.2 kB / 408.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.2532, allocations: 8 kB / 408.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2532, allocations: 192 / 408.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2532, allocations: 8 kB / 408.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.2535, allocations: 31.92 kB / 408.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.2535, allocations: 4 kB / 408.8 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.2538, allocations: 31.81 kB / 408.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.2538, allocations: 8 kB / 408.9 MB, free: 1.043 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.0001913/0.254, allocations: 146.2 kB / 409 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.2541, allocations: 15.81 kB / 409 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004562/0.2545, allocations: 218.8 kB / 409.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2546, allocations: 0 / 409.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2546, allocations: 0 / 409.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.237e-05/0.2546, allocations: 92.86 kB / 409.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.2547, allocations: 15.94 kB / 409.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.2548, allocations: 15.97 kB / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.409e-05/0.2549, allocations: 19.97 kB / 409.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004968/0.2554, allocations: 364.9 kB / 409.7 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000517/0.2559, allocations: 441.9 kB / 410.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001565/0.2561, allocations: 83.94 kB / 410.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.2562, allocations: 140.6 kB / 410.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of Backend: time 6.51e-07/0.2562, allocations: 0 / 410.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006249/0.2568, allocations: 189.2 kB / 410.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of SimCode: time 0.0008658/0.2577, allocations: 0.7837 MB / 411.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Templates: time 0.005698/0.2634, allocations: 2.515 MB / 413.9 MB, free: 11.95 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches