Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 102.5 kB / 16.62 MB, free: 6.812 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.00101/0.00101, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.275/1.275, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009439/0.000944, allocations: 46.95 kB / 300.1 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08496/0.08592, allocations: 49.44 MB / 349.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.005772/0.09172, allocations: 5.063 MB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003118/0.09486, allocations: 2.055 MB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002265/0.0951, allocations: 16 kB / 356.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002878/0.09799, allocations: 1.324 MB / 358 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.09912, allocations: 0.5171 MB / 358.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001857/0.101, allocations: 0.9921 MB / 359.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007687/0.1018, allocations: 0.7395 MB / 360.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009709/0.1027, allocations: 0.7313 MB / 361 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003905/0.1032, allocations: 346.8 kB / 361.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004244/0.1036, allocations: 442.3 kB / 361.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.135e-05/0.1037, allocations: 68 kB / 361.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000614/0.1043, allocations: 383.7 kB / 362.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.1044, allocations: 175.4 kB / 362.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000283/0.1047, allocations: 378.1 kB / 362.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.1058, allocations: 1.192 MB / 364 MB, free: 6.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1058, allocations: 0 / 364 MB, free: 6.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1058, allocations: 0 / 364 MB, free: 6.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.1059, allocations: 0 / 364 MB, free: 6.094 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004135/0.11, allocations: 1.455 MB / 365.4 MB, free: 4.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.11, allocations: 8.031 kB / 365.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002701/0.1128, allocations: 387.7 kB / 365.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.113, allocations: 255.3 kB / 366.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.799e-05/0.1131, allocations: 62.38 kB / 366.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.1132, allocations: 84.38 kB / 366.2 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.1149, allocations: 0.8797 MB / 367.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.1149, allocations: 8 kB / 367.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.279e-05/0.115, allocations: 28 kB / 367.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/0.115, allocations: 24 kB / 367.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.1168, allocations: 0.8003 MB / 367.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1532/0.27, allocations: 2.966 MB / 370.9 MB, free: 23.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.2712, allocations: 0.993 MB / 371.9 MB, free: 22.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005404/0.2718, allocations: 244.6 kB / 372.1 MB, free: 22.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.94e-05/0.2719, allocations: 93.81 kB / 372.2 MB, free: 22.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.2719, allocations: 43.91 kB / 372.3 MB, free: 22.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.575e-06/0.2719, allocations: 0 / 372.3 MB, free: 22.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008175/0.2801, allocations: 2.423 MB / 374.7 MB, free: 21.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.2801, allocations: 87.17 kB / 374.8 MB, free: 21.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.2805, allocations: 316 kB / 375.1 MB, free: 21.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.2805, allocations: 36.14 kB / 375.1 MB, free: 21.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.2807, allocations: 361.3 kB / 375.5 MB, free: 21.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.2808, allocations: 212.1 kB / 375.7 MB, free: 21.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/0.281, allocations: 156.4 kB / 375.8 MB, free: 21.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.211e-05/0.2811, allocations: 347.8 kB / 376.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008065/0.2819, allocations: 273.9 kB / 376.4 MB, free: 20.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008678/0.2828, allocations: 0.5083 MB / 377 MB, free: 20.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.2844, allocations: 0.8092 MB / 377.8 MB, free: 19.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.2844, allocations: 2.656 kB / 377.8 MB, free: 19.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002081/0.2865, allocations: 0.9104 MB / 378.7 MB, free: 19.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.2865, allocations: 11.06 kB / 378.7 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.2865, allocations: 8.312 kB / 378.7 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002519/0.2868, allocations: 79.55 kB / 378.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009185/0.2877, allocations: 203.8 kB / 379 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.2892, allocations: 2.869 MB / 381.8 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007699/0.29, allocations: 63.78 kB / 381.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.205e-05/0.2901, allocations: 39.16 kB / 381.9 MB, free: 16.51 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003069/0.2904, allocations: 214.4 kB / 382.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.262e-05/0.2905, allocations: 39.89 kB / 382.2 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00202/0.2925, allocations: 0.7475 MB / 382.9 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.2926, allocations: 16.5 kB / 383 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2926, allocations: 0 / 383 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.2926, allocations: 3.188 kB / 383 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002747/0.2953, allocations: 1.432 MB / 384.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2953, allocations: 0 / 384.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007174/0.2961, allocations: 136.8 kB / 384.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001721/0.2963, allocations: 64.86 kB / 384.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.263e-05/0.2963, allocations: 15.95 kB / 384.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.2976, allocations: 2.851 MB / 387.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2976, allocations: 0 / 387.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/0.3002, allocations: 1.084 MB / 388.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.3004, allocations: 166.3 kB / 388.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.071e-05/0.3005, allocations: 16.2 kB / 388.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005619/0.301, allocations: 50.92 kB / 388.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.3012, allocations: 51.56 kB / 388.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.387e-05/0.3012, allocations: 22.91 kB / 388.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3014, allocations: 221.1 kB / 389.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3014, allocations: 0 / 389.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007312/0.3022, allocations: 175 kB / 389.2 MB, free: 11.53 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0002447/0.3024, allocations: 162.9 kB / 389.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002287/0.3047, allocations: 0.9442 MB / 390.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3048, allocations: 0 / 390.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000996/0.3058, allocations: 0.5527 MB / 390.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.3062, allocations: 45.5 kB / 390.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.3088, allocations: 1.566 MB / 392.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.3091, allocations: 0.8796 MB / 393.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005035/0.3096, allocations: 99.62 kB / 393.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.3098, allocations: 51.92 kB / 393.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3098, allocations: 0 / 393.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of Templates: time 0.01075/0.3205, allocations: 6.372 MB / 399.9 MB, free: 6.238 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches