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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, 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.003733/0.003733, allocations: 145.8 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.8471/0.8471, allocations: 173.4 MB / 201.2 MB, free: 9.434 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.ToroidalCoreAirgap,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.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,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.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.421e-05/1.549e-05, allocations: 6.219 kB / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003508/0.003524, allocations: 4.542 MB / 324.2 MB, free: 1.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.005302, allocations: 1.953 MB / 326.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.00545, allocations: 16 kB / 326.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.006759, allocations: 1.375 MB / 327.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006151/0.007374, allocations: 0.5512 MB / 328.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008978/0.008272, allocations: 1.016 MB / 329.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.008763, allocations: 0.7586 MB / 329.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005307/0.009294, allocations: 0.5714 MB / 330.5 MB, free: 11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.009638, allocations: 486.9 kB / 331 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.009884, allocations: 323.2 kB / 331.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.009939, allocations: 68 kB / 331.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003834/0.01032, allocations: 387.3 kB / 331.7 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.015e-05/0.0104, allocations: 167.3 kB / 331.9 MB, free: 9.602 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.01056, allocations: 251.3 kB / 332.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008027/0.01136, allocations: 1.234 MB / 333.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.01137, allocations: 0 / 333.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01137, allocations: 4 kB / 333.4 MB, free: 8.113 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.01137, allocations: 0 / 333.4 MB, free: 8.113 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.002144/0.01352, allocations: 1.386 MB / 334.8 MB, free: 6.695 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.01355, allocations: 12.92 kB / 334.8 MB, free: 6.684 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.01473, allocations: 384.1 kB / 335.1 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.01486, allocations: 193.5 kB / 335.3 MB, free: 6.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.398e-05/0.01491, allocations: 66.38 kB / 335.4 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.31e-05/0.01499, allocations: 88.38 kB / 335.5 MB, free: 5.938 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009554/0.01595, allocations: 0.8975 MB / 336.4 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.01597, allocations: 4.172 kB / 336.4 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/0.01601, allocations: 36.38 kB / 336.4 MB, free: 4.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.01603, allocations: 23.94 kB / 336.4 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.01706, allocations: 0.7925 MB / 337.2 MB, free: 4.168 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.01939, allocations: 2.285 MB / 339.5 MB, free: 1.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006262/0.02001, allocations: 0.532 MB / 340.1 MB, free: 1.227 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.0203, allocations: 214.2 kB / 340.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.658e-05/0.02035, allocations: 20.48 kB / 340.3 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.02037, allocations: 39.06 kB / 340.3 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.523e-06/0.02037, allocations: 0 / 340.3 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003984/0.02436, allocations: 2.198 MB / 342.5 MB, free: 14.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.02439, allocations: 85.61 kB / 342.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.02459, allocations: 307.9 kB / 342.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.02462, allocations: 33.7 kB / 342.9 MB, free: 14.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.02475, allocations: 367.9 kB / 343.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.02486, allocations: 222.1 kB / 343.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.02499, allocations: 146.6 kB / 343.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.453e-05/0.02508, allocations: 350.8 kB / 344 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.0255, allocations: 273.8 kB / 344.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005148/0.02602, allocations: 0.5294 MB / 344.8 MB, free: 12.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000937/0.02695, allocations: 0.8088 MB / 345.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.02696, allocations: 4 kB / 345.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001145/0.0281, allocations: 0.9088 MB / 346.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.02812, allocations: 15.98 kB / 346.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.02812, allocations: 4 kB / 346.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001367/0.02826, allocations: 69.69 kB / 346.6 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004135/0.02867, allocations: 203.7 kB / 346.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.02981, allocations: 2.615 MB / 349.4 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.0301, allocations: 60.08 kB / 349.5 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.03013, allocations: 35.98 kB / 349.5 MB, free: 7.215 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.0001688/0.0303, allocations: 217.5 kB / 349.7 MB, free: 6.992 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.867e-05/0.03035, allocations: 43.72 kB / 349.8 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.0314, allocations: 0.7491 MB / 350.5 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.0314, allocations: 8 kB / 350.5 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.0314, allocations: 4 kB / 350.5 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-06/0.03141, allocations: 3.984 kB / 350.5 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.03283, allocations: 1.205 MB / 351.7 MB, free: 4.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/0.03284, allocations: 0 / 351.7 MB, free: 4.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003123/0.03315, allocations: 135.8 kB / 351.9 MB, free: 4.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.272e-05/0.03324, allocations: 57.67 kB / 351.9 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.03327, allocations: 23.92 kB / 352 MB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.03429, allocations: 2.6 MB / 354.6 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.0343, allocations: 3.938 kB / 354.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.0357, allocations: 1.086 MB / 355.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.03582, allocations: 95.73 kB / 355.7 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.03585, allocations: 8 kB / 355.7 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.03608, allocations: 47.95 kB / 355.8 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.483e-05/0.03615, allocations: 48.41 kB / 355.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.03617, allocations: 19.98 kB / 355.9 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001199/0.03629, allocations: 199.1 kB / 356.1 MB, free: 392 kB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03629, allocations: 0 / 356.1 MB, free: 392 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003868/0.03668, allocations: 179.9 kB / 356.2 MB, free: 212 kB / 314.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.0001827/0.03686, allocations: 151.1 kB / 356.4 MB, free: 48 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.03797, allocations: 0.8801 MB / 357.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.03797, allocations: 0 / 357.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000532/0.0385, allocations: 0.5397 MB / 357.8 MB, free: 14.58 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.03878, allocations: 40.92 kB / 357.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.04024, allocations: 1.229 MB / 359.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001696/0.0404, allocations: 286.6 kB / 359.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.04056, allocations: 60.47 kB / 359.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.04056, allocations: 0 / 359.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of Templates: time 0.009555/0.05011, allocations: 13.44 MB / 372.8 MB, free: 15.47 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.746284414082766]