Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.QuadraticCoreAirgap,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.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,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.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 109.2 kB / 16.92 MB, free: 5.762 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.001102/0.001102, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.276/1.276, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009574/0.0009574, allocations: 47.02 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09827/0.09924, allocations: 49.45 MB / 350.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.007558/0.1068, allocations: 6.694 MB / 356.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004169/0.111, allocations: 2.393 MB / 359.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005446/0.1116, allocations: 20 kB / 359.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003888/0.1155, allocations: 1.874 MB / 361.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002217/0.1177, allocations: 0.7105 MB / 361.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00239/0.1201, allocations: 1.174 MB / 362.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00133/0.1215, allocations: 1.113 MB / 364 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.1229, allocations: 0.9508 MB / 365 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006579/0.1236, allocations: 474.2 kB / 365.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006942/0.1243, allocations: 0.6264 MB / 366.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001837/0.1245, allocations: 100 kB / 366.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/0.1256, allocations: 427.7 kB / 366.6 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.1258, allocations: 247 kB / 366.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006233/0.1264, allocations: 0.5636 MB / 367.4 MB, free: 3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.1281, allocations: 1.628 MB / 369 MB, free: 1.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1281, allocations: 0 / 369 MB, free: 1.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1281, allocations: 0 / 369 MB, free: 1.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.957e-05/0.1281, allocations: 0 / 369 MB, free: 1.367 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.1759/0.304, allocations: 2.013 MB / 371 MB, free: 24.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3041, allocations: 10.89 kB / 371.1 MB, free: 24.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003589/0.3077, allocations: 0.5111 MB / 371.6 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.308, allocations: 303.9 kB / 371.9 MB, free: 24.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.753e-05/0.3081, allocations: 100.8 kB / 372 MB, free: 24.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.3082, allocations: 133 kB / 372.1 MB, free: 24.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.3105, allocations: 1.297 MB / 373.4 MB, free: 23.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/0.3106, allocations: 1.766 kB / 373.4 MB, free: 23.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.3107, allocations: 59.5 kB / 373.5 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.3107, allocations: 33.97 kB / 373.5 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002303/0.313, allocations: 1.191 MB / 374.7 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005644/0.3187, allocations: 4.236 MB / 378.9 MB, free: 21.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002111/0.3208, allocations: 2.442 MB / 381.4 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008772/0.3217, allocations: 0.5024 MB / 381.9 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000108/0.3218, allocations: 113.1 kB / 382 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.3219, allocations: 49.16 kB / 382 MB, free: 18.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 2.876e-06/0.3219, allocations: 0 / 382 MB, free: 18.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01057/0.3325, allocations: 3.783 MB / 385.8 MB, free: 17.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.3325, allocations: 90.86 kB / 385.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/0.333, allocations: 391 kB / 386.3 MB, free: 16.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.929e-05/0.333, allocations: 46.92 kB / 386.3 MB, free: 16.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.3332, allocations: 454.3 kB / 386.8 MB, free: 16.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.3334, allocations: 425.7 kB / 387.2 MB, free: 16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003079/0.3337, allocations: 238 kB / 387.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.456e-05/0.3338, allocations: 377 kB / 387.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.3348, allocations: 435.2 kB / 388.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.336, allocations: 0.6964 MB / 388.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002141/0.3382, allocations: 1.171 MB / 390.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3382, allocations: 5.219 kB / 390.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002706/0.3409, allocations: 1.473 MB / 391.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3409, allocations: 11.53 kB / 391.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3409, allocations: 7.938 kB / 391.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004936/0.3414, allocations: 200.9 kB / 391.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.3426, allocations: 289.2 kB / 392 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003236/0.3458, allocations: 4.375 MB / 396.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009127/0.3468, allocations: 86.31 kB / 396.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.812e-05/0.3469, allocations: 55.86 kB / 396.6 MB, free: 9.328 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003945/0.3473, allocations: 264.3 kB / 396.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.3474, allocations: 68.52 kB / 396.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/0.3502, allocations: 1.359 MB / 398.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3502, allocations: 11.81 kB / 398.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.3502, allocations: 3.938 kB / 398.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3502, allocations: 11.91 kB / 398.3 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00396/0.3542, allocations: 2.618 MB / 400.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3542, allocations: 0 / 400.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008954/0.3551, allocations: 215.7 kB / 401.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000389/0.3555, allocations: 177.2 kB / 401.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.3556, allocations: 27.98 kB / 401.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00275/0.3583, allocations: 4.186 MB / 405.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3584, allocations: 3.938 kB / 405.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003499/0.3619, allocations: 1.878 MB / 407.4 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000352/0.3622, allocations: 228.1 kB / 407.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.3624, allocations: 31.92 kB / 407.6 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007366/0.3631, allocations: 68.02 kB / 407.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.3633, allocations: 84.98 kB / 407.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.505e-05/0.3634, allocations: 43.91 kB / 407.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002721/0.3637, allocations: 267.2 kB / 408.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3637, allocations: 0 / 408.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0011/0.3648, allocations: 302.6 kB / 408.4 MB, free: 14.39 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002915/0.3651, allocations: 179.3 kB / 408.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003801/0.3689, allocations: 1.494 MB / 410 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3689, allocations: 4.125 kB / 410 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.3704, allocations: 0.8726 MB / 410.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.371, allocations: 69.5 kB / 411 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.375, allocations: 1.956 MB / 412.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005883/0.3756, allocations: 1.009 MB / 413.9 MB, free: 8.711 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007458/0.3764, allocations: 146.6 kB / 414.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.3766, allocations: 75.41 kB / 414.2 MB, free: 8.488 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3766, allocations: 0 / 414.2 MB, free: 8.488 MB / 318.1 MB Notification: Performance of Templates: time 0.01891/0.3956, allocations: 10.31 MB / 424.5 MB, free: 14.24 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches