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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008505/0.0008505, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003735/0.003735, allocations: 149.6 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.832/0.832, allocations: 173.4 MB / 201.2 MB, free: 9.078 MB / 186.7 MB " [Timeout remaining time 179] 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=500,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=500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.906e-05/3.091e-05, allocations: 10.28 kB / 319.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005014/0.005045, allocations: 5.927 MB / 325.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003533/0.008578, allocations: 2.272 MB / 327.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000382/0.00896, allocations: 20 kB / 327.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001968/0.01093, allocations: 1.838 MB / 329.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.01197, allocations: 0.6986 MB / 330.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.01318, allocations: 1.122 MB / 331.6 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008171/0.01399, allocations: 1.156 MB / 332.8 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007958/0.01479, allocations: 0.8329 MB / 333.6 MB, free: 7.891 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005254/0.01531, allocations: 0.6976 MB / 334.3 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006342/0.01595, allocations: 482.7 kB / 334.8 MB, free: 6.719 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.079e-05/0.01604, allocations: 100 kB / 334.9 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005573/0.0166, allocations: 415.3 kB / 335.3 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.01672, allocations: 258.9 kB / 335.5 MB, free: 5.961 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002283/0.01694, allocations: 383 kB / 335.9 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001229/0.01817, allocations: 1.702 MB / 337.6 MB, free: 3.879 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.01818, allocations: 0 / 337.6 MB, free: 3.879 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01818, allocations: 0 / 337.6 MB, free: 3.879 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.01819, allocations: 0 / 337.6 MB, free: 3.879 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.003214/0.0214, allocations: 1.959 MB / 339.5 MB, free: 1.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.02144, allocations: 12.92 kB / 339.6 MB, free: 1.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001665/0.02311, allocations: 0.5114 MB / 340.1 MB, free: 1.363 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.02333, allocations: 248.3 kB / 340.3 MB, free: 1.094 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.902e-05/0.02341, allocations: 106.9 kB / 340.4 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.02355, allocations: 124.3 kB / 340.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.02511, allocations: 1.333 MB / 341.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003471/0.02546, allocations: 4.188 kB / 341.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-05/0.02553, allocations: 48.38 kB / 341.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/0.02556, allocations: 35.94 kB / 342 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.02708, allocations: 1.193 MB / 343.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.03096, allocations: 3.32 MB / 346.5 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.0323, allocations: 1.139 MB / 347.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005659/0.03286, allocations: 452 kB / 348 MB, free: 9.203 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.347e-05/0.03295, allocations: 32.97 kB / 348.1 MB, free: 9.168 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.03297, allocations: 47.56 kB / 348.1 MB, free: 9.113 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 2.785e-06/0.03298, allocations: 3.938 kB / 348.1 MB, free: 9.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.006348/0.03932, allocations: 3.56 MB / 351.7 MB, free: 5.516 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.03938, allocations: 94.11 kB / 351.8 MB, free: 5.402 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003133/0.03969, allocations: 389.2 kB / 352.2 MB, free: 5.012 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.541e-05/0.03974, allocations: 45.7 kB / 352.2 MB, free: 4.961 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.03992, allocations: 464.6 kB / 352.7 MB, free: 4.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.04011, allocations: 440.2 kB / 353.1 MB, free: 4.066 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/0.04032, allocations: 227.5 kB / 353.3 MB, free: 3.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.04043, allocations: 374.8 kB / 353.7 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006287/0.04106, allocations: 435.8 kB / 354.1 MB, free: 3.039 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007326/0.04179, allocations: 0.7247 MB / 354.8 MB, free: 2.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.04316, allocations: 1.179 MB / 356 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.04317, allocations: 8 kB / 356 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002004/0.04517, allocations: 1.463 MB / 357.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.04519, allocations: 8 kB / 357.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.0452, allocations: 4 kB / 357.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003336/0.04554, allocations: 197.6 kB / 357.7 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006172/0.04615, allocations: 303.5 kB / 358 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/0.04884, allocations: 4.063 MB / 362 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004211/0.04926, allocations: 76.08 kB / 362.1 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.825e-05/0.04932, allocations: 59.97 kB / 362.2 MB, free: 10.55 MB / 330.7 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.0003016/0.04962, allocations: 269.5 kB / 362.4 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.315e-05/0.0497, allocations: 67.58 kB / 362.5 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.05164, allocations: 1.343 MB / 363.8 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.05165, allocations: 12 kB / 363.9 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.05166, allocations: 4 kB / 363.9 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.05167, allocations: 11.91 kB / 363.9 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.05424, allocations: 2.174 MB / 366 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.05424, allocations: 8.125 kB / 366.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004795/0.05472, allocations: 219.7 kB / 366.3 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.05497, allocations: 157.6 kB / 366.4 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.05501, allocations: 31.92 kB / 366.5 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.05733, allocations: 3.9 MB / 370.4 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.05733, allocations: 0 / 370.4 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/0.05985, allocations: 1.865 MB / 372.2 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/0.06006, allocations: 155.4 kB / 372.4 MB, free: 32 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.154e-05/0.06011, allocations: 24 kB / 372.4 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003165/0.06043, allocations: 63.94 kB / 372.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.06056, allocations: 96.75 kB / 372.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.0606, allocations: 40.2 kB / 372.6 MB, free: 15.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001737/0.06077, allocations: 255.2 kB / 372.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.06077, allocations: 4.062 kB / 372.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007017/0.06147, allocations: 307.9 kB / 373.1 MB, free: 15.26 MB / 346.7 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.0002511/0.06172, allocations: 179 kB / 373.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.06343, allocations: 1.391 MB / 374.7 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.06344, allocations: 4.062 kB / 374.7 MB, free: 13.65 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008821/0.06432, allocations: 0.8113 MB / 375.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.06468, allocations: 65.48 kB / 375.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.0671, allocations: 1.948 MB / 377.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.06763, allocations: 420.3 kB / 378 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.06785, allocations: 88.45 kB / 378 MB, free: 10.22 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.06785, allocations: 3.938 kB / 378 MB, free: 10.22 MB / 346.7 MB Notification: Performance of Templates: time 0.01419/0.08204, allocations: 20.07 MB / 398.1 MB, free: 6.145 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.572737256996334]