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.0009742/0.0009742, allocations: 96.81 kB / 17.31 MB, free: 5.934 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.001041/0.001041, allocations: 179.3 kB / 18.21 MB, free: 5.395 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.12/1.12, allocations: 223.3 MB / 242.3 MB, free: 14.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002026/0.0002026, allocations: 8 kB / 302.1 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0706/0.07082, allocations: 50.42 MB / 352.5 MB, free: 3.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003995/0.07485, allocations: 4.572 MB / 357.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002567/0.07743, allocations: 2.024 MB / 359.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.07759, allocations: 20 kB / 359.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004998/0.07809, allocations: 302.8 kB / 359.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009035/0.07901, allocations: 0.5132 MB / 359.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.0805, allocations: 1.004 MB / 360.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005668/0.08108, allocations: 0.7082 MB / 361.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001737/0.08283, allocations: 1.233 MB / 362.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.08311, allocations: 274.8 kB / 363.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003434/0.08346, allocations: 382.4 kB / 363.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.246e-05/0.08352, allocations: 39.94 kB / 363.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004742/0.084, allocations: 355.6 kB / 363.9 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.08409, allocations: 127.4 kB / 364 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.08433, allocations: 359.8 kB / 364.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006746/0.08501, allocations: 0.8844 MB / 365.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.08502, allocations: 0 / 365.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.08502, allocations: 0 / 365.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.08504, allocations: 0 / 365.3 MB, free: 6.578 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.003423/0.08846, allocations: 1.327 MB / 366.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.0885, allocations: 12.03 kB / 366.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002327/0.09083, allocations: 391.6 kB / 367 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.09101, allocations: 249 kB / 367.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-05/0.09107, allocations: 66.38 kB / 367.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.09118, allocations: 84.38 kB / 367.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.09264, allocations: 0.8956 MB / 368.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.09267, allocations: 7.906 kB / 368.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.611e-05/0.09275, allocations: 32 kB / 368.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.09276, allocations: 20 kB / 368.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.09439, allocations: 0.8238 MB / 369.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1293/0.2237, allocations: 2.961 MB / 372.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.2249, allocations: 1.008 MB / 373.1 MB, free: 21.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/0.2254, allocations: 250.9 kB / 373.4 MB, free: 21.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.026e-05/0.2255, allocations: 93.97 kB / 373.5 MB, free: 21.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.2256, allocations: 44.92 kB / 373.5 MB, free: 21.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.084e-06/0.2256, allocations: 0.9375 kB / 373.5 MB, free: 21.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007698/0.2333, allocations: 2.7 MB / 376.2 MB, free: 21.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.2333, allocations: 83.78 kB / 376.3 MB, free: 21.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.2336, allocations: 307.2 kB / 376.6 MB, free: 21.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.521e-05/0.2336, allocations: 37.58 kB / 376.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.2338, allocations: 361.2 kB / 377 MB, free: 20.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.2339, allocations: 215.2 kB / 377.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.872e-05/0.234, allocations: 65.47 kB / 377.3 MB, free: 20.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.737e-05/0.234, allocations: 348.5 kB / 377.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007648/0.2348, allocations: 295.4 kB / 377.9 MB, free: 20.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008154/0.2356, allocations: 0.5334 MB / 378.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.2372, allocations: 0.8608 MB / 379.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.2372, allocations: 2.812 kB / 379.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001943/0.2392, allocations: 0.9486 MB / 380.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.2392, allocations: 11 kB / 380.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.2392, allocations: 7.969 kB / 380.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002005/0.2394, allocations: 67.86 kB / 380.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008048/0.2403, allocations: 217.6 kB / 380.5 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.2415, allocations: 2.674 MB / 383.2 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006272/0.2421, allocations: 78.14 kB / 383.3 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.2422, allocations: 39.28 kB / 383.3 MB, free: 16.32 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.0002112/0.2424, allocations: 215.2 kB / 383.5 MB, free: 16.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.137e-05/0.2425, allocations: 47.27 kB / 383.6 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/0.2443, allocations: 0.7915 MB / 384.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.2443, allocations: 6.5 kB / 384.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.2443, allocations: 5.375 kB / 384.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.2443, allocations: 4.094 kB / 384.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.2468, allocations: 1.463 MB / 385.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2468, allocations: 0 / 385.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006463/0.2474, allocations: 146.4 kB / 386 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001362/0.2476, allocations: 64.22 kB / 386 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.2476, allocations: 18.75 kB / 386.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.2487, allocations: 2.652 MB / 388.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2487, allocations: 0 / 388.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/0.2511, allocations: 1.158 MB / 389.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.2512, allocations: 169.7 kB / 390 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.458e-05/0.2513, allocations: 16.8 kB / 390.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004971/0.2518, allocations: 60.69 kB / 390.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.2519, allocations: 46.53 kB / 390.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.252, allocations: 19.89 kB / 390.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.2521, allocations: 208.9 kB / 390.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2521, allocations: 0 / 390.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005759/0.2527, allocations: 172.6 kB / 390.6 MB, free: 11.53 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.0001924/0.2529, allocations: 162.8 kB / 390.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.2547, allocations: 0.9572 MB / 391.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2547, allocations: 0 / 391.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/0.2556, allocations: 0.5799 MB / 392.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.256, allocations: 48.89 kB / 392.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.2582, allocations: 1.644 MB / 393.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.2584, allocations: 0.8793 MB / 394.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.2586, allocations: 66.12 kB / 394.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of SimCode: time 1.81e-07/0.2586, allocations: 0 / 394.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of Templates: time 0.01018/0.2688, allocations: 13.01 MB / 407.9 MB, free: 15.73 MB / 318.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