Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 114.1 kB / 17.69 MB, free: 5.312 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.001012/0.001012, allocations: 191 kB / 18.63 MB, free: 4.379 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.263/1.263, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009028/0.0009029, allocations: 46.02 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08791/0.08883, allocations: 49.45 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.005431/0.09429, allocations: 5.246 MB / 356.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.09636, allocations: 1.674 MB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.09653, allocations: 16 kB / 358.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002378/0.09892, allocations: 1.416 MB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004846/0.09942, allocations: 313.7 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.1007, allocations: 0.8165 MB / 361 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006345/0.1013, allocations: 0.8092 MB / 361.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008278/0.1021, allocations: 0.7767 MB / 362.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.1024, allocations: 346.7 kB / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.1028, allocations: 462.2 kB / 363.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.652e-05/0.1029, allocations: 80 kB / 363.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003727/0.1033, allocations: 263.8 kB / 363.7 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.1034, allocations: 183.2 kB / 363.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002806/0.1037, allocations: 421.9 kB / 364.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008485/0.1046, allocations: 1.191 MB / 365.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1046, allocations: 0 / 365.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1046, allocations: 0 / 365.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.1046, allocations: 0 / 365.5 MB, free: 5.668 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003135/0.1077, allocations: 1.447 MB / 366.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.102e-05/0.1078, allocations: 8.031 kB / 366.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001457/0.1092, allocations: 251.7 kB / 367.2 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.1094, allocations: 263.2 kB / 367.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/0.1094, allocations: 74.38 kB / 367.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.1095, allocations: 108.2 kB / 367.6 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.1108, allocations: 0.9386 MB / 368.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.1108, allocations: 0 / 368.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.46e-05/0.1109, allocations: 40 kB / 368.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.1109, allocations: 27.98 kB / 368.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.1121, allocations: 0.7814 MB / 369.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1259/0.238, allocations: 3.345 MB / 372.8 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.2397, allocations: 1.255 MB / 374 MB, free: 23.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004606/0.2402, allocations: 374.7 kB / 374.4 MB, free: 22.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.52e-05/0.2403, allocations: 105.7 kB / 374.5 MB, free: 22.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.2403, allocations: 45.12 kB / 374.5 MB, free: 22.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 1.954e-06/0.2403, allocations: 1.531 kB / 374.5 MB, free: 22.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.001804/0.2421, allocations: 1.302 MB / 375.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.2421, allocations: 90.52 kB / 375.9 MB, free: 21.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.2425, allocations: 367.3 kB / 376.3 MB, free: 21.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.2425, allocations: 36.45 kB / 376.3 MB, free: 21.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.2427, allocations: 390.6 kB / 376.7 MB, free: 21.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.2428, allocations: 296 kB / 377 MB, free: 21.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/0.2431, allocations: 173.7 kB / 377.2 MB, free: 21.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.118e-05/0.2431, allocations: 366.3 kB / 377.5 MB, free: 20.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.2435, allocations: 263.5 kB / 377.8 MB, free: 20.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004755/0.244, allocations: 475 kB / 378.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008507/0.2449, allocations: 0.77 MB / 379 MB, free: 19.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.2449, allocations: 2.375 kB / 379 MB, free: 19.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001394/0.2463, allocations: 0.9689 MB / 380 MB, free: 19.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2463, allocations: 6.781 kB / 380 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.2463, allocations: 7.328 kB / 380 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003163/0.2467, allocations: 126.2 kB / 380.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.2474, allocations: 212.5 kB / 380.3 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00254/0.2499, allocations: 6.111 MB / 386.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.2504, allocations: 100.6 kB / 386.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.839e-05/0.2505, allocations: 41.77 kB / 386.6 MB, free: 13.13 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002203/0.2507, allocations: 229.5 kB / 386.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.2508, allocations: 53.88 kB / 386.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.252, allocations: 0.8557 MB / 387.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.2521, allocations: 12.38 kB / 387.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.2521, allocations: 2.938 kB / 387.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.2521, allocations: 6.469 kB / 387.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.2544, allocations: 1.93 MB / 389.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2544, allocations: 3.344 kB / 389.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005117/0.2549, allocations: 138.7 kB / 389.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002393/0.2552, allocations: 106.7 kB / 389.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.412e-05/0.2552, allocations: 22.12 kB / 389.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.2575, allocations: 5.701 MB / 395.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2575, allocations: 3.5 kB / 395.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.2589, allocations: 1.274 MB / 396.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.259, allocations: 155 kB / 397 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.405e-05/0.2591, allocations: 15.34 kB / 397.1 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.2594, allocations: 21.8 kB / 397.1 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.804e-05/0.2595, allocations: 62.25 kB / 397.1 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/0.2596, allocations: 28.02 kB / 397.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.2598, allocations: 255.3 kB / 397.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2598, allocations: 3.828 kB / 397.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007746/0.2606, allocations: 265.5 kB / 397.7 MB, free: 4.305 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000177/0.2608, allocations: 160 kB / 397.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.262, allocations: 1.176 MB / 399 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.262, allocations: 0 / 399 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006508/0.2627, allocations: 0.7958 MB / 399.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.2632, allocations: 56.17 kB / 399.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.265, allocations: 1.396 MB / 401.3 MB, free: 2.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.2653, allocations: 0.9125 MB / 402.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003761/0.2657, allocations: 109 kB / 402.3 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.2658, allocations: 48.5 kB / 402.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2658, allocations: 3.938 kB / 402.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of Templates: time 0.7528/1.019, allocations: 7.046 MB / 409.4 MB, free: 13.57 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches