Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,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.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,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.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001305, allocations: 112.8 kB / 17.07 MB, free: 5.945 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.001183/0.001183, allocations: 194.8 kB / 18 MB, free: 5.039 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 51.92 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.272, allocations: 49.43 MB / 400.7 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006943/0.279, allocations: 5.045 MB / 405.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.2829, allocations: 2.094 MB / 407.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00029/0.2832, allocations: 20 kB / 407.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003091/0.2863, allocations: 1.394 MB / 409.3 MB, free: 440 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001339/0.2877, allocations: 0.5784 MB / 409.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002007/0.2897, allocations: 1.052 MB / 410.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009331/0.2906, allocations: 0.7394 MB / 411.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.2917, allocations: 0.6546 MB / 412.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004101/0.2921, allocations: 338.8 kB / 412.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.2926, allocations: 426.3 kB / 413.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.605e-05/0.2927, allocations: 68 kB / 413.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008229/0.2936, allocations: 387.6 kB / 413.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.2937, allocations: 163.4 kB / 413.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003555/0.2941, allocations: 378.1 kB / 414 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001278/0.2953, allocations: 1.188 MB / 415.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2954, allocations: 0 / 415.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2954, allocations: 4 kB / 415.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.2954, allocations: 0 / 415.2 MB, free: 10.47 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004453/0.2998, allocations: 1.451 MB / 416.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2999, allocations: 8.031 kB / 416.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002661/0.3026, allocations: 383.8 kB / 417.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.3028, allocations: 260.6 kB / 417.3 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.032e-05/0.3029, allocations: 62.38 kB / 417.4 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.303, allocations: 84.38 kB / 417.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.3048, allocations: 0.8799 MB / 418.3 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.3048, allocations: 7.938 kB / 418.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-05/0.3049, allocations: 36 kB / 418.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.3049, allocations: 20 kB / 418.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.3067, allocations: 0.7964 MB / 419.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004093/0.3108, allocations: 2.934 MB / 422.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.3121, allocations: 1.011 MB / 423.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005826/0.3127, allocations: 242.4 kB / 423.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.3128, allocations: 93.66 kB / 423.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.3129, allocations: 39.12 kB / 423.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.194e-06/0.3129, allocations: 0 / 423.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.008116/0.321, allocations: 2.423 MB / 425.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.3211, allocations: 81.67 kB / 426 MB, free: 15.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003071/0.3214, allocations: 311 kB / 426.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.3214, allocations: 33.7 kB / 426.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.3217, allocations: 362.5 kB / 426.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.3218, allocations: 217 kB / 426.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.322, allocations: 138.6 kB / 427 MB, free: 14.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3222, allocations: 346.8 kB / 427.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007873/0.323, allocations: 277.8 kB / 427.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009174/0.3239, allocations: 0.5042 MB / 428.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001731/0.3257, allocations: 0.8114 MB / 429 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3257, allocations: 0 / 429 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002212/0.3279, allocations: 0.9065 MB / 429.9 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3279, allocations: 8 kB / 429.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.3279, allocations: 8 kB / 429.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002372/0.3282, allocations: 69.61 kB / 430 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008725/0.3291, allocations: 211.6 kB / 430.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.3311, allocations: 2.88 MB / 433 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006764/0.3318, allocations: 63.86 kB / 433.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.3318, allocations: 39.98 kB / 433.1 MB, free: 7.441 MB / 350.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.0002997/0.3321, allocations: 217.6 kB / 433.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.369e-05/0.3322, allocations: 35.53 kB / 433.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.3342, allocations: 0.7429 MB / 434.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3343, allocations: 4 kB / 434.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.3343, allocations: 0 / 434.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3343, allocations: 7.984 kB / 434.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/0.337, allocations: 1.425 MB / 435.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.337, allocations: 0 / 435.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000715/0.3377, allocations: 139.8 kB / 435.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001585/0.3379, allocations: 53.67 kB / 435.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.3379, allocations: 19.98 kB / 435.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/0.3398, allocations: 2.844 MB / 438.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3399, allocations: 12.06 kB / 438.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002768/0.3426, allocations: 1.083 MB / 439.7 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.3428, allocations: 172.4 kB / 439.9 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.3429, allocations: 15.94 kB / 439.9 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005237/0.3435, allocations: 43.95 kB / 439.9 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.3436, allocations: 48.48 kB / 440 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.3436, allocations: 23.98 kB / 440 MB, free: 152 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002333/0.3439, allocations: 207.1 kB / 440.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3439, allocations: 0 / 440.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007075/0.3446, allocations: 172 kB / 440.4 MB, free: 15.78 MB / 366.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.0002667/0.3449, allocations: 171 kB / 440.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.347, allocations: 0.9085 MB / 441.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.347, allocations: 4.125 kB / 441.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.3481, allocations: 0.5472 MB / 442 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.3485, allocations: 52.58 kB / 442.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.3511, allocations: 1.224 MB / 443.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.3516, allocations: 0.8848 MB / 444.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004126/0.352, allocations: 96.52 kB / 444.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.3522, allocations: 51.41 kB / 444.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3522, allocations: 0 / 444.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of Templates: time 0.01189/0.3641, allocations: 6.419 MB / 450.7 MB, free: 5.352 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches