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.001221/0.001221, allocations: 104.8 kB / 17.73 MB, free: 5.215 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.001049/0.001049, allocations: 189.5 kB / 18.67 MB, free: 4.289 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.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009628/0.0009628, allocations: 51.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3093, allocations: 49.44 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.006063/0.3154, allocations: 5.047 MB / 406.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003779/0.3192, allocations: 2.09 MB / 408.6 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003166/0.3195, allocations: 16 kB / 408.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002932/0.3225, allocations: 1.395 MB / 410 MB, free: 344 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001329/0.3238, allocations: 0.5748 MB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.3258, allocations: 1.067 MB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009025/0.3267, allocations: 0.7394 MB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009323/0.3277, allocations: 0.6509 MB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004091/0.3281, allocations: 334.8 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004178/0.3285, allocations: 426.3 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.049e-05/0.3286, allocations: 68 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007847/0.3294, allocations: 395.6 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.3296, allocations: 167.4 kB / 414.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002857/0.3299, allocations: 370.1 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.3311, allocations: 1.191 MB / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3311, allocations: 0 / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3311, allocations: 0 / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.3311, allocations: 4 kB / 415.9 MB, free: 10.37 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.004102/0.3352, allocations: 1.444 MB / 417.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3353, allocations: 16.03 kB / 417.4 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002473/0.3378, allocations: 379.7 kB / 417.7 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002405/0.338, allocations: 260.6 kB / 418 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.758e-05/0.3381, allocations: 66.38 kB / 418.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.3382, allocations: 80.38 kB / 418.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.3399, allocations: 0.88 MB / 419 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.3399, allocations: 11.94 kB / 419 MB, free: 7.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.971e-05/0.34, allocations: 32 kB / 419.1 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.34, allocations: 20 kB / 419.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.3417, allocations: 0.7925 MB / 419.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.3458, allocations: 2.938 MB / 422.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.347, allocations: 1.007 MB / 423.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.3476, allocations: 238.4 kB / 424.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001028/0.3477, allocations: 97.64 kB / 424.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3477, allocations: 39.12 kB / 424.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.425e-06/0.3477, allocations: 0 / 424.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.008003/0.3557, allocations: 2.419 MB / 426.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.3558, allocations: 85.67 kB / 426.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003536/0.3562, allocations: 311 kB / 427 MB, free: 14.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.226e-05/0.3562, allocations: 33.7 kB / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.3565, allocations: 366.6 kB / 427.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.3566, allocations: 205 kB / 427.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.3568, allocations: 146.5 kB / 427.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.357, allocations: 350.8 kB / 428.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007764/0.3578, allocations: 273.8 kB / 428.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009121/0.3587, allocations: 0.5081 MB / 428.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001731/0.3604, allocations: 0.8075 MB / 429.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.3604, allocations: 4 kB / 429.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002142/0.3626, allocations: 0.9065 MB / 430.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.3626, allocations: 8 kB / 430.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.3627, allocations: 8 kB / 430.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/0.3629, allocations: 69.55 kB / 430.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008834/0.3638, allocations: 203.7 kB / 430.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.3658, allocations: 2.88 MB / 433.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007111/0.3666, allocations: 71.8 kB / 433.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.105e-05/0.3666, allocations: 39.98 kB / 433.8 MB, free: 7.344 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.0002968/0.3669, allocations: 217.7 kB / 434 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.611e-05/0.367, allocations: 39.53 kB / 434.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001994/0.369, allocations: 0.739 MB / 434.8 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.369, allocations: 8 kB / 434.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.369, allocations: 0 / 434.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3691, allocations: 3.984 kB / 434.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/0.3717, allocations: 1.421 MB / 436.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3718, allocations: 0 / 436.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000678/0.3724, allocations: 135.8 kB / 436.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001721/0.3726, allocations: 61.67 kB / 436.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.127e-05/0.3727, allocations: 15.98 kB / 436.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001779/0.3745, allocations: 2.844 MB / 439.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3745, allocations: 0 / 439.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.3771, allocations: 1.091 MB / 440.4 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.3773, allocations: 168.4 kB / 440.6 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.943e-05/0.3774, allocations: 16 kB / 440.6 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005101/0.3779, allocations: 47.95 kB / 440.6 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.378, allocations: 52.55 kB / 440.7 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.3781, allocations: 16 kB / 440.7 MB, free: 64 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002266/0.3783, allocations: 207.1 kB / 440.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3783, allocations: 0 / 440.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006941/0.379, allocations: 176 kB / 441.1 MB, free: 15.69 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.0002675/0.3793, allocations: 175.2 kB / 441.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.3814, allocations: 0.9124 MB / 442.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3814, allocations: 0 / 442.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3824, allocations: 0.5511 MB / 442.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.3828, allocations: 48.58 kB / 442.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.3854, allocations: 1.264 MB / 444 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.3858, allocations: 0.8809 MB / 444.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.386, allocations: 63.39 kB / 445 MB, free: 11.68 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.386, allocations: 0 / 445 MB, free: 11.68 MB / 366.1 MB Notification: Performance of Templates: time 0.01449/0.4005, allocations: 13.24 MB / 458.2 MB, free: 14.45 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