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.00115/0.00115, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001207/0.001207, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.363/1.363, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 55.89 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2837, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00602/0.2897, allocations: 5.052 MB / 406.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00344/0.2932, allocations: 2.082 MB / 408.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002529/0.2935, allocations: 16 kB / 408.6 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002946/0.2965, allocations: 1.402 MB / 410 MB, free: 312 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.2977, allocations: 0.5696 MB / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.2997, allocations: 1.056 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009582/0.3007, allocations: 0.7394 MB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.3018, allocations: 0.6688 MB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005874/0.3024, allocations: 326.8 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006989/0.3031, allocations: 430.3 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.3033, allocations: 68 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.3043, allocations: 387.6 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/0.3045, allocations: 163.4 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004745/0.305, allocations: 378.1 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.3066, allocations: 1.189 MB / 415.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3066, allocations: 4 kB / 415.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3066, allocations: 3.938 kB / 415.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.475e-05/0.3066, allocations: 0 / 415.9 MB, free: 10.34 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.004627/0.3113, allocations: 1.451 MB / 417.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.3113, allocations: 12.03 kB / 417.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00269/0.314, allocations: 375.8 kB / 417.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.3143, allocations: 256.6 kB / 418 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-05/0.3144, allocations: 66.38 kB / 418.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.3145, allocations: 84.36 kB / 418.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.3164, allocations: 0.8799 MB / 419 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.3164, allocations: 4 kB / 419 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.401e-05/0.3165, allocations: 32 kB / 419 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.3165, allocations: 20 kB / 419.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.3184, allocations: 0.8003 MB / 419.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004277/0.3226, allocations: 2.934 MB / 422.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.3239, allocations: 1.015 MB / 423.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005469/0.3245, allocations: 242.4 kB / 424.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001002/0.3246, allocations: 89.67 kB / 424.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.3247, allocations: 39.12 kB / 424.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.174e-06/0.3247, allocations: 0 / 424.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.008465/0.3331, allocations: 2.423 MB / 426.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.3332, allocations: 85.67 kB / 426.7 MB, free: 15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.3336, allocations: 315 kB / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.532e-05/0.3336, allocations: 33.7 kB / 427 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.3338, allocations: 354.6 kB / 427.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.334, allocations: 216.9 kB / 427.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/0.3342, allocations: 142.5 kB / 427.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3344, allocations: 350.8 kB / 428.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008259/0.3352, allocations: 273.8 kB / 428.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000991/0.3362, allocations: 0.5042 MB / 428.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.338, allocations: 0.8114 MB / 429.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.3381, allocations: 4 kB / 429.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002236/0.3403, allocations: 0.9026 MB / 430.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.3403, allocations: 8 kB / 430.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.3404, allocations: 8 kB / 430.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/0.3406, allocations: 69.61 kB / 430.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008888/0.3415, allocations: 207.6 kB / 430.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.3436, allocations: 2.872 MB / 433.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007224/0.3443, allocations: 71.84 kB / 433.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.32e-05/0.3444, allocations: 39.98 kB / 433.8 MB, free: 7.32 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.0003015/0.3447, allocations: 213.7 kB / 434 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.3448, allocations: 39.53 kB / 434.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002074/0.3469, allocations: 0.743 MB / 434.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3469, allocations: 7.938 kB / 434.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3469, allocations: 4 kB / 434.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.347, allocations: 3.984 kB / 434.8 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/0.3498, allocations: 1.425 MB / 436.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.3498, allocations: 3.938 kB / 436.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007057/0.3505, allocations: 131.8 kB / 436.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.3507, allocations: 57.69 kB / 436.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.3508, allocations: 15.98 kB / 436.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00195/0.3527, allocations: 2.852 MB / 439.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3527, allocations: 0 / 439.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002719/0.3555, allocations: 1.087 MB / 440.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.3557, allocations: 164.4 kB / 440.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.289e-05/0.3558, allocations: 19.94 kB / 440.6 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005553/0.3563, allocations: 56 kB / 440.6 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.3565, allocations: 44.5 kB / 440.7 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.3565, allocations: 19.98 kB / 440.7 MB, free: 28 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002347/0.3568, allocations: 207.1 kB / 440.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3568, allocations: 0 / 440.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007247/0.3575, allocations: 172 kB / 441.1 MB, free: 15.65 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.0002788/0.3578, allocations: 171 kB / 441.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.36, allocations: 0.9124 MB / 442.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.36, allocations: 0 / 442.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.3611, allocations: 0.5511 MB / 442.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.3616, allocations: 44.59 kB / 442.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.3644, allocations: 1.26 MB / 444 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.3648, allocations: 0.8848 MB / 444.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.3651, allocations: 63.39 kB / 444.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3651, allocations: 4 kB / 445 MB, free: 11.65 MB / 366.1 MB Notification: Performance of Templates: time 0.01598/0.3811, allocations: 13.14 MB / 458.1 MB, free: 14.52 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/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