Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007355/0.0007354, allocations: 92.89 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002133/0.0002133, allocations: 8 kB / 360.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1925, allocations: 51.41 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00346/0.196, allocations: 4.332 MB / 416.4 MB, free: 21.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.1987, allocations: 3.618 MB / 420 MB, free: 17.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002267/0.199, allocations: 20 kB / 420 MB, free: 17.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005212/0.1995, allocations: 302.8 kB / 420.3 MB, free: 17.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007625/0.2003, allocations: 0.5122 MB / 420.8 MB, free: 16.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.202, allocations: 2.358 MB / 423.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005959/0.2026, allocations: 0.7002 MB / 423.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.2044, allocations: 2.121 MB / 426 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.2047, allocations: 286.8 kB / 426.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.205, allocations: 378.4 kB / 426.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.209e-05/0.2051, allocations: 36 kB / 426.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007068/0.2058, allocations: 363.6 kB / 427.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-05/0.2059, allocations: 123.5 kB / 427.2 MB, free: 9.812 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002318/0.2061, allocations: 359.8 kB / 427.5 MB, free: 9.453 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009159/0.2071, allocations: 1.162 MB / 428.7 MB, free: 8.289 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2071, allocations: 0 / 428.7 MB, free: 8.289 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2071, allocations: 0 / 428.7 MB, free: 8.289 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.2071, allocations: 4 kB / 428.7 MB, free: 8.285 MB / 298.7 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.003413/0.2105, allocations: 1.331 MB / 430 MB, free: 6.902 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.2106, allocations: 8.031 kB / 430 MB, free: 6.895 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002288/0.2129, allocations: 399.6 kB / 430.4 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.213, allocations: 253.5 kB / 430.7 MB, free: 6.215 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.2131, allocations: 66.38 kB / 430.7 MB, free: 6.152 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.2132, allocations: 80.38 kB / 430.8 MB, free: 6.074 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.2146, allocations: 0.8839 MB / 431.7 MB, free: 5.176 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.2146, allocations: 7.984 kB / 431.7 MB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.24e-05/0.2147, allocations: 32 kB / 431.7 MB, free: 5.137 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.2147, allocations: 20 kB / 431.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.2163, allocations: 0.8277 MB / 432.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003542/0.2198, allocations: 3.04 MB / 435.6 MB, free: 1.035 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009777/0.2208, allocations: 1.008 MB / 436.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005484/0.2214, allocations: 254.4 kB / 436.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.2215, allocations: 170.8 kB / 437.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.2216, allocations: 43.11 kB / 437.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=58): time 2.424e-06/0.2216, allocations: 0 / 437.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.007869/0.2295, allocations: 2.693 MB / 439.8 MB, free: 12.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.2295, allocations: 85.67 kB / 439.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.2299, allocations: 299.2 kB / 440.2 MB, free: 12.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.2299, allocations: 37.7 kB / 440.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.2301, allocations: 358.6 kB / 440.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.2303, allocations: 212.9 kB / 440.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.2303, allocations: 16 kB / 440.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.2304, allocations: 346.8 kB / 441.1 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007775/0.2312, allocations: 297.8 kB / 441.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009746/0.2322, allocations: 0.5277 MB / 441.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001769/0.234, allocations: 0.8544 MB / 442.8 MB, free: 9.363 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.234, allocations: 0 / 442.8 MB, free: 9.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002096/0.2361, allocations: 0.9455 MB / 443.7 MB, free: 8.402 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.2361, allocations: 8 kB / 443.7 MB, free: 8.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.2362, allocations: 8 kB / 443.7 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002193/0.2364, allocations: 77.64 kB / 443.8 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000859/0.2372, allocations: 215.7 kB / 444 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.239, allocations: 2.647 MB / 446.7 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006443/0.2397, allocations: 83.86 kB / 446.8 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.639e-05/0.2398, allocations: 39.98 kB / 446.8 MB, free: 5.055 MB / 314.7 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.0002695/0.24, allocations: 221.5 kB / 447 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.895e-05/0.2401, allocations: 47.47 kB / 447.1 MB, free: 4.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.242, allocations: 0.7857 MB / 447.8 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.526e-05/0.2421, allocations: 11.98 kB / 447.9 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2421, allocations: 0 / 447.9 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2421, allocations: 0 / 447.9 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.2448, allocations: 1.473 MB / 449.3 MB, free: 2.441 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2448, allocations: 7.938 kB / 449.3 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006674/0.2454, allocations: 147.8 kB / 449.5 MB, free: 2.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001762/0.2456, allocations: 65.61 kB / 449.5 MB, free: 2.219 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.863e-05/0.2457, allocations: 15.98 kB / 449.6 MB, free: 2.203 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.2475, allocations: 2.651 MB / 452.2 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2475, allocations: 0 / 452.2 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.2501, allocations: 1.152 MB / 453.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/0.2504, allocations: 160.6 kB / 453.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.044e-05/0.2504, allocations: 15.98 kB / 453.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005269/0.251, allocations: 60.02 kB / 453.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.2511, allocations: 44.48 kB / 453.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.896e-05/0.2511, allocations: 19.98 kB / 453.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002077/0.2514, allocations: 207.1 kB / 453.9 MB, free: 13.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2514, allocations: 0 / 453.9 MB, free: 13.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006451/0.252, allocations: 176 kB / 454 MB, free: 13.42 MB / 330.7 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.0002631/0.2523, allocations: 175.1 kB / 454.2 MB, free: 13.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002057/0.2544, allocations: 0.9476 MB / 455.2 MB, free: 12.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2544, allocations: 8.062 kB / 455.2 MB, free: 12.26 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.2554, allocations: 0.5823 MB / 455.7 MB, free: 11.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.2558, allocations: 47.2 kB / 455.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.2585, allocations: 1.614 MB / 457.4 MB, free: 9.965 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.259, allocations: 0.881 MB / 458.3 MB, free: 9.059 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005053/0.2595, allocations: 92.52 kB / 458.4 MB, free: 8.965 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.2596, allocations: 47.42 kB / 458.4 MB, free: 8.918 MB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2597, allocations: 0 / 458.4 MB, free: 8.918 MB / 330.7 MB Notification: Performance of Templates: time 0.01152/0.2712, allocations: 5.993 MB / 464.4 MB, free: 2.93 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches