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.001541/0.001541, allocations: 115.3 kB / 17.29 MB, free: 6.324 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.001709/0.001709, allocations: 197.3 kB / 18.2 MB, free: 5.406 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.362/1.362, allocations: 222.9 MB / 241.9 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 43.95 kB / 300.8 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09009, allocations: 49.45 MB / 350.3 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00628/0.09641, allocations: 5.028 MB / 355.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003605/0.1001, allocations: 2.051 MB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006197/0.1007, allocations: 16 kB / 357.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003194/0.1039, allocations: 1.327 MB / 358.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001491/0.1055, allocations: 0.5093 MB / 359.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00202/0.1075, allocations: 0.9846 MB / 360.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.1086, allocations: 0.7356 MB / 360.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.1098, allocations: 0.7429 MB / 361.6 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000518/0.1103, allocations: 334.8 kB / 362 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006454/0.111, allocations: 430.3 kB / 362.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.1112, allocations: 68 kB / 362.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008972/0.1121, allocations: 391.7 kB / 362.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.1123, allocations: 163.4 kB / 363 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004308/0.1127, allocations: 378.1 kB / 363.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.1138, allocations: 0.9156 MB / 364.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1139, allocations: 0 / 364.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1139, allocations: 0 / 364.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.031e-05/0.1139, allocations: 0 / 364.3 MB, free: 6.438 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.004501/0.1184, allocations: 1.448 MB / 365.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1185, allocations: 8.031 kB / 365.7 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002631/0.1211, allocations: 383.6 kB / 366.1 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.1214, allocations: 256 kB / 366.4 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-05/0.1215, allocations: 70.31 kB / 366.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.1217, allocations: 80.38 kB / 366.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.1235, allocations: 0.8761 MB / 367.4 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.1236, allocations: 7.906 kB / 367.4 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-05/0.1236, allocations: 32 kB / 367.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.1237, allocations: 23.98 kB / 367.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.1256, allocations: 0.7964 MB / 368.3 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2097/0.3353, allocations: 2.956 MB / 371.2 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3367, allocations: 0.9993 MB / 372.2 MB, free: 23.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006108/0.3373, allocations: 242.3 kB / 372.4 MB, free: 23.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.3374, allocations: 95.77 kB / 372.5 MB, free: 22.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.3375, allocations: 39.06 kB / 372.6 MB, free: 22.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 3.336e-06/0.3375, allocations: 0 / 372.6 MB, free: 22.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008707/0.3462, allocations: 2.423 MB / 375 MB, free: 22.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.3463, allocations: 83.17 kB / 375.1 MB, free: 22.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003556/0.3467, allocations: 305.5 kB / 375.4 MB, free: 21.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.852e-05/0.3467, allocations: 36.36 kB / 375.4 MB, free: 21.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.3469, allocations: 366.3 kB / 375.8 MB, free: 21.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.3471, allocations: 210.8 kB / 376 MB, free: 21.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.3473, allocations: 144.5 kB / 376.1 MB, free: 21.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.237e-05/0.3474, allocations: 350.9 kB / 376.5 MB, free: 21.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008456/0.3483, allocations: 271.8 kB / 376.7 MB, free: 20.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009065/0.3492, allocations: 0.5037 MB / 377.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.3508, allocations: 0.8114 MB / 378 MB, free: 20.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.3509, allocations: 2.75 kB / 378 MB, free: 20.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002333/0.3532, allocations: 0.9064 MB / 379 MB, free: 19.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.3533, allocations: 9.703 kB / 379 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.673e-05/0.3533, allocations: 9.25 kB / 379 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003019/0.3536, allocations: 68.42 kB / 379 MB, free: 19.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009092/0.3545, allocations: 204.3 kB / 379.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/0.3563, allocations: 2.868 MB / 382.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007215/0.357, allocations: 71.98 kB / 382.2 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.002e-05/0.3571, allocations: 40.06 kB / 382.2 MB, free: 16.76 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.000319/0.3574, allocations: 212.3 kB / 382.4 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.3575, allocations: 42.78 kB / 382.5 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.3596, allocations: 0.7423 MB / 383.2 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.3596, allocations: 9.672 kB / 383.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3596, allocations: 5.922 kB / 383.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.3597, allocations: 3.094 kB / 383.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002937/0.3626, allocations: 1.432 MB / 384.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.3626, allocations: 0 / 384.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007244/0.3633, allocations: 135.5 kB / 384.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.3635, allocations: 57.23 kB / 384.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.3636, allocations: 19.94 kB / 384.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.365, allocations: 2.851 MB / 387.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.365, allocations: 1.125 kB / 387.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.3677, allocations: 1.087 MB / 388.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002312/0.368, allocations: 162.7 kB / 389 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.921e-05/0.3681, allocations: 11.84 kB / 389 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005353/0.3686, allocations: 50.72 kB / 389 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.3688, allocations: 52.5 kB / 389.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.542e-05/0.3688, allocations: 19.55 kB / 389.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002375/0.3691, allocations: 208.9 kB / 389.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3691, allocations: 1.375 kB / 389.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008443/0.3699, allocations: 176 kB / 389.5 MB, free: 11.8 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.0002967/0.3702, allocations: 156.5 kB / 389.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002483/0.3727, allocations: 0.9436 MB / 390.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3727, allocations: 0 / 390.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009989/0.3737, allocations: 0.5542 MB / 391.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.3742, allocations: 40.92 kB / 391.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.3768, allocations: 1.59 MB / 392.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.3772, allocations: 0.8805 MB / 393.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.3774, allocations: 62.94 kB / 393.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3774, allocations: 0.75 kB / 393.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of Templates: time 0.01472/0.3921, allocations: 13.09 MB / 406.8 MB, free: 0.6133 MB / 302.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