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.0008218/0.0008218, allocations: 76.08 kB / 20.67 MB, free: 3.883 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.000768/0.000768, allocations: 149.4 kB / 23.93 MB, free: 0.6211 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.9017/0.9017, allocations: 173.4 MB / 200.4 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.519e-05/1.707e-05, allocations: 2.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006038/0.006055, allocations: 4.538 MB / 323 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003708/0.009763, allocations: 1.95 MB / 324.9 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004415/0.0102, allocations: 16 kB / 324.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001872/0.01208, allocations: 1.383 MB / 326.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001072/0.01315, allocations: 0.5551 MB / 326.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.01446, allocations: 1.013 MB / 327.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008291/0.01529, allocations: 0.7625 MB / 328.7 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000812/0.0161, allocations: 0.5753 MB / 329.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004832/0.01659, allocations: 490.9 kB / 329.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004666/0.01705, allocations: 319.2 kB / 330 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.088e-05/0.01713, allocations: 71.94 kB / 330.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006178/0.01775, allocations: 367.4 kB / 330.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.888e-05/0.01785, allocations: 171.3 kB / 330.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.01804, allocations: 255.3 kB / 330.9 MB, free: 9.883 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.01911, allocations: 1.242 MB / 332.1 MB, free: 8.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.01912, allocations: 0 / 332.1 MB, free: 8.637 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.01912, allocations: 0 / 332.1 MB, free: 8.637 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.01913, allocations: 0 / 332.1 MB, free: 8.637 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.00252/0.02165, allocations: 1.382 MB / 333.5 MB, free: 7.223 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.0217, allocations: 8.922 kB / 333.5 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001563/0.02186, allocations: 131.4 kB / 333.6 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001329/0.02319, allocations: 388.1 kB / 334 MB, free: 6.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.0234, allocations: 201.5 kB / 334.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.949e-05/0.02346, allocations: 66.38 kB / 334.3 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.02357, allocations: 80.38 kB / 334.4 MB, free: 6.328 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.0247, allocations: 0.9014 MB / 335.3 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.02473, allocations: 8.125 kB / 335.3 MB, free: 5.402 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.62e-05/0.02479, allocations: 40.12 kB / 335.3 MB, free: 5.363 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.02481, allocations: 20 kB / 335.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.02596, allocations: 0.7964 MB / 336.1 MB, free: 4.547 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002953/0.02891, allocations: 2.386 MB / 338.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006916/0.0296, allocations: 0.5242 MB / 339 MB, free: 1.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.02992, allocations: 218.2 kB / 339.2 MB, free: 1.285 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-05/0.02998, allocations: 16.48 kB / 339.3 MB, free: 1.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.03001, allocations: 35.06 kB / 339.3 MB, free: 1.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.234e-06/0.03002, allocations: 0 / 339.3 MB, free: 1.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.004331/0.03435, allocations: 2.202 MB / 341.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.0344, allocations: 85.61 kB / 341.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.03465, allocations: 316.2 kB / 341.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.03469, allocations: 37.7 kB / 341.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.03486, allocations: 367.9 kB / 342.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.03498, allocations: 222.1 kB / 342.5 MB, free: 13.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.03514, allocations: 150.5 kB / 342.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.03524, allocations: 346.8 kB / 343 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/0.03569, allocations: 269.8 kB / 343.3 MB, free: 13.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005784/0.03627, allocations: 0.5342 MB / 343.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.03734, allocations: 0.8127 MB / 344.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.03735, allocations: 3.938 kB / 344.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001245/0.03859, allocations: 0.9045 MB / 345.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.03862, allocations: 8 kB / 345.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.03863, allocations: 8 kB / 345.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.03881, allocations: 74.11 kB / 345.6 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004301/0.03924, allocations: 199.7 kB / 345.8 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.04065, allocations: 2.661 MB / 348.4 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.04097, allocations: 59.91 kB / 348.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.935e-05/0.041, allocations: 40.17 kB / 348.5 MB, free: 7.41 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.0001871/0.04119, allocations: 217.7 kB / 348.8 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.897e-05/0.04124, allocations: 43.75 kB / 348.8 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001091/0.04233, allocations: 0.7413 MB / 349.5 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.04234, allocations: 8 kB / 349.6 MB, free: 6.383 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.04234, allocations: 3.938 kB / 349.6 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.04234, allocations: 3.984 kB / 349.6 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.04394, allocations: 1.309 MB / 350.9 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.04395, allocations: 0 / 350.9 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.04427, allocations: 135.8 kB / 351 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.04438, allocations: 65.66 kB / 351.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.0444, allocations: 15.98 kB / 351.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.04561, allocations: 2.642 MB / 353.7 MB, free: 1.918 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.04561, allocations: 0 / 353.7 MB, free: 1.918 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.04709, allocations: 1.089 MB / 354.8 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.04722, allocations: 79.73 kB / 354.9 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.799e-05/0.04725, allocations: 23.86 kB / 354.9 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.04748, allocations: 43.95 kB / 355 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.04758, allocations: 52.41 kB / 355 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.04761, allocations: 24.05 kB / 355 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000155/0.04777, allocations: 203.1 kB / 355.2 MB, free: 400 kB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04777, allocations: 0 / 355.2 MB, free: 400 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004726/0.04824, allocations: 176 kB / 355.4 MB, free: 224 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.001867/0.0501, allocations: 1.68 MB / 357.1 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.05137, allocations: 0.8839 MB / 358 MB, free: 13.6 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.05137, allocations: 0 / 358 MB, free: 13.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005656/0.05194, allocations: 0.5281 MB / 358.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.05228, allocations: 48.42 kB / 358.5 MB, free: 13 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005666/0.05795, allocations: 5.119 MB / 363.7 MB, free: 7.59 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001918/0.05814, allocations: 278.6 kB / 363.9 MB, free: 7.289 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002421/0.05838, allocations: 100.5 kB / 364 MB, free: 7.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002409/0.05862, allocations: 232.3 kB / 364.3 MB, free: 6.961 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.05862, allocations: 0 / 364.3 MB, free: 6.961 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.08698, allocations: 12.16 MB / 376.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.438/7.525, allocations: 15.8 kB / 376.4 MB, free: 11.02 MB / 346.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] 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: 9.241720620542765]