Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 39.94 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3208, allocations: 53.37 MB / 431.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00708/0.3279, allocations: 4.56 MB / 436.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004057/0.3319, allocations: 2.014 MB / 438.4 MB, free: 64 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005954/0.3325, allocations: 16 kB / 438.5 MB, free: 48 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003608/0.3361, allocations: 1.306 MB / 439.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001565/0.3377, allocations: 413.5 kB / 440.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002592/0.3403, allocations: 1.135 MB / 441.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.3417, allocations: 0.7394 MB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.343, allocations: 0.5753 MB / 442.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008085/0.3438, allocations: 338.8 kB / 443 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009058/0.3447, allocations: 426.3 kB / 443.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002683/0.3449, allocations: 71.94 kB / 443.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001434/0.3464, allocations: 407.6 kB / 443.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003006/0.3467, allocations: 159.5 kB / 444 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004966/0.3472, allocations: 306.6 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002176/0.3494, allocations: 1.214 MB / 445.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3494, allocations: 0 / 445.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3494, allocations: 0 / 445.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.3494, allocations: 3.938 kB / 445.5 MB, free: 8.98 MB / 350.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.00463/0.354, allocations: 1.402 MB / 446.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.037e-05/0.3541, allocations: 8.031 kB / 446.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.923e-05/0.3541, allocations: 22.19 kB / 446.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001737/0.3543, allocations: 131.4 kB / 447.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002606/0.3569, allocations: 376 kB / 447.4 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.3572, allocations: 186.3 kB / 447.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.338e-05/0.3573, allocations: 66.38 kB / 447.7 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.3574, allocations: 84.36 kB / 447.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.3593, allocations: 0.9086 MB / 448.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/0.3593, allocations: 3.953 kB / 448.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.017e-05/0.3594, allocations: 32 kB / 448.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.658e-05/0.3594, allocations: 20 kB / 448.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.3612, allocations: 0.7847 MB / 449.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004585/0.3658, allocations: 2.406 MB / 451.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.3669, allocations: 0.5063 MB / 452.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004968/0.3674, allocations: 218.2 kB / 452.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.521e-05/0.3675, allocations: 24.47 kB / 452.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.3675, allocations: 43.06 kB / 452.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.705e-06/0.3675, allocations: 0 / 452.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007075/0.3746, allocations: 2.171 MB / 454.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.3746, allocations: 89.61 kB / 455 MB, free: 15.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.375, allocations: 304.4 kB / 455.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.57e-05/0.375, allocations: 37.7 kB / 455.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/0.3753, allocations: 367.9 kB / 455.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.3754, allocations: 222.1 kB / 455.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.3757, allocations: 150.5 kB / 456 MB, free: 14.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002479/0.3759, allocations: 350.7 kB / 456.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007848/0.3767, allocations: 281.8 kB / 456.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009446/0.3777, allocations: 0.5186 MB / 457.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.3794, allocations: 0.8126 MB / 458 MB, free: 11.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.3794, allocations: 4 kB / 458 MB, free: 11.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002082/0.3814, allocations: 0.8933 MB / 458.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.3815, allocations: 11.94 kB / 458.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.3815, allocations: 8 kB / 458.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002431/0.3817, allocations: 69.67 kB / 459 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008488/0.3826, allocations: 199.6 kB / 459.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/0.3849, allocations: 2.657 MB / 461.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/0.3855, allocations: 60.08 kB / 461.9 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-05/0.3856, allocations: 35.98 kB / 461.9 MB, free: 7.797 MB / 366.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.0003236/0.3859, allocations: 213.6 kB / 462.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.386, allocations: 47.66 kB / 462.2 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3879, allocations: 0.7259 MB / 462.9 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3879, allocations: 8 kB / 462.9 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3879, allocations: 4 kB / 462.9 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3879, allocations: 3.938 kB / 462.9 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.3906, allocations: 1.298 MB / 464.2 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.3906, allocations: 4 kB / 464.2 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006527/0.3913, allocations: 131.8 kB / 464.3 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.3915, allocations: 57.67 kB / 464.4 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.246e-05/0.3915, allocations: 15.98 kB / 464.4 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002224/0.3937, allocations: 2.638 MB / 467 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3937, allocations: 4.031 kB / 467 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.3962, allocations: 1.081 MB / 468.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.3964, allocations: 87.67 kB / 468.2 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.33e-05/0.3965, allocations: 12 kB / 468.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004888/0.397, allocations: 39.95 kB / 468.3 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3971, allocations: 52.41 kB / 468.3 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.3972, allocations: 23.92 kB / 468.3 MB, free: 1.031 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002283/0.3974, allocations: 203.1 kB / 468.5 MB, free: 0.832 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3974, allocations: 64 / 468.5 MB, free: 0.832 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007413/0.3981, allocations: 184 kB / 468.7 MB, free: 0.6523 MB / 366.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.003146/0.4013, allocations: 1.676 MB / 470.4 MB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.4034, allocations: 0.8652 MB / 471.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4034, allocations: 0 / 471.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.4045, allocations: 0.5312 MB / 471.8 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.4051, allocations: 48.52 kB / 471.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009992/0.415, allocations: 5.087 MB / 476.9 MB, free: 8.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.4154, allocations: 282.6 kB / 477.2 MB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000394/0.4158, allocations: 92.5 kB / 477.3 MB, free: 7.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003596/0.4162, allocations: 223.3 kB / 477.5 MB, free: 7.461 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4162, allocations: 0 / 477.5 MB, free: 7.461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6161/1.032, allocations: 12.08 MB / 489.6 MB, free: 11.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.61, allocations: 2.75 kB / 489.6 MB, free: 11.62 MB / 398.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 18.502954169991426]