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.001377/0.001377, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001409/0.001409, allocations: 191 kB / 18 MB, free: 5.105 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.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 47.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3255, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.01204/0.3375, allocations: 5.046 MB / 405.8 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006347/0.3439, allocations: 2.094 MB / 407.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006393/0.3446, allocations: 16 kB / 407.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005629/0.3503, allocations: 1.402 MB / 409.3 MB, free: 296 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002614/0.3529, allocations: 0.5783 MB / 409.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003254/0.3562, allocations: 1.058 MB / 410.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001544/0.3577, allocations: 0.7394 MB / 411.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.3593, allocations: 0.6507 MB / 412.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006324/0.36, allocations: 338.8 kB / 412.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000774/0.3608, allocations: 426.3 kB / 413.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.361, allocations: 68 kB / 413.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.3621, allocations: 387.6 kB / 413.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.3623, allocations: 167.4 kB / 413.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005101/0.3629, allocations: 374.1 kB / 414 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002044/0.3649, allocations: 1.191 MB / 415.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3649, allocations: 4 kB / 415.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3649, allocations: 0 / 415.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.501e-05/0.365, allocations: 0 / 415.2 MB, free: 10.33 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.004444/0.3694, allocations: 1.448 MB / 416.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3695, allocations: 11.97 kB / 416.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002606/0.3721, allocations: 383.7 kB / 417.1 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.3724, allocations: 264.6 kB / 417.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.537e-05/0.3724, allocations: 62.38 kB / 417.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.3726, allocations: 84.38 kB / 417.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3744, allocations: 0.8838 MB / 418.3 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.361e-05/0.3745, allocations: 0 / 418.3 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/0.3745, allocations: 36 kB / 418.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.052e-05/0.3746, allocations: 20 kB / 418.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.3765, allocations: 0.7964 MB / 419.2 MB, free: 6.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004568/0.3811, allocations: 2.926 MB / 422.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.3823, allocations: 1.022 MB / 423.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005176/0.3829, allocations: 238.4 kB / 423.4 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001228/0.383, allocations: 93.66 kB / 423.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.383, allocations: 35.12 kB / 423.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.715e-06/0.383, allocations: 0 / 423.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.007688/0.3907, allocations: 2.423 MB / 425.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.3908, allocations: 85.67 kB / 426 MB, free: 14.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.3912, allocations: 307 kB / 426.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/0.3912, allocations: 41.7 kB / 426.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.3915, allocations: 354.6 kB / 426.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.3916, allocations: 220.9 kB / 426.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.3919, allocations: 138.6 kB / 427 MB, free: 13.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.392, allocations: 346.8 kB / 427.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007761/0.3928, allocations: 277.8 kB / 427.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009228/0.3937, allocations: 0.5081 MB / 428.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.3954, allocations: 0.8075 MB / 429 MB, free: 11.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3955, allocations: 4 kB / 429 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002139/0.3976, allocations: 0.9026 MB / 429.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3976, allocations: 8 kB / 429.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.3977, allocations: 8 kB / 429.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002494/0.3979, allocations: 73.61 kB / 430 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008771/0.3988, allocations: 207.6 kB / 430.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/0.4011, allocations: 2.876 MB / 433 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006839/0.4018, allocations: 63.86 kB / 433.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.98e-05/0.4019, allocations: 39.98 kB / 433.1 MB, free: 7.305 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.000328/0.4023, allocations: 213.7 kB / 433.4 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.898e-05/0.4024, allocations: 39.53 kB / 433.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.4044, allocations: 0.743 MB / 434.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.4044, allocations: 8 kB / 434.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.4044, allocations: 4 kB / 434.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4044, allocations: 3.984 kB / 434.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.4072, allocations: 1.425 MB / 435.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4072, allocations: 0 / 435.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006726/0.4079, allocations: 135.8 kB / 435.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.4081, allocations: 57.67 kB / 435.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.4081, allocations: 19.98 kB / 435.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001823/0.41, allocations: 2.848 MB / 438.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.41, allocations: 0 / 438.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.4125, allocations: 1.091 MB / 439.7 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.4128, allocations: 168.4 kB / 439.9 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.4128, allocations: 15.94 kB / 439.9 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004921/0.4133, allocations: 43.95 kB / 439.9 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.4135, allocations: 56.55 kB / 440 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.943e-05/0.4135, allocations: 23.98 kB / 440 MB, free: 4 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002843/0.4138, allocations: 203.1 kB / 440.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4138, allocations: 0 / 440.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000681/0.4145, allocations: 172 kB / 440.4 MB, free: 15.64 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.0002437/0.4147, allocations: 172 kB / 440.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001951/0.4167, allocations: 0.9124 MB / 441.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4167, allocations: 0 / 441.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009673/0.4177, allocations: 0.5511 MB / 442 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.4181, allocations: 48.58 kB / 442.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.4207, allocations: 1.224 MB / 443.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004643/0.4212, allocations: 0.8809 MB / 444.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003676/0.4215, allocations: 96.52 kB / 444.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.4217, allocations: 55.41 kB / 444.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4217, allocations: 0 / 444.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01157/0.4333, allocations: 6.418 MB / 450.7 MB, free: 5.215 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