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.001437/0.001437, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001514/0.001514, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.439/1.439, allocations: 230.6 MB / 254.1 MB, free: 15.07 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.103, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.2036/0.3067, allocations: 5.078 MB / 431.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003735/0.3104, allocations: 2.167 MB / 433.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006266/0.311, allocations: 17.84 kB / 433.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003133/0.3142, allocations: 1.411 MB / 435 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.3156, allocations: 430.7 kB / 435.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002295/0.3178, allocations: 1.213 MB / 436.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.3191, allocations: 0.7349 MB / 437.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.3202, allocations: 0.5026 MB / 437.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007503/0.3209, allocations: 347 kB / 438.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007455/0.3217, allocations: 426 kB / 438.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002242/0.3219, allocations: 67.06 kB / 438.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.3233, allocations: 407 kB / 439.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002229/0.3235, allocations: 164.3 kB / 439.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006059/0.3241, allocations: 386.8 kB / 439.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.3263, allocations: 1.205 MB / 440.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3263, allocations: 0 / 440.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3263, allocations: 1.781 kB / 440.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.3264, allocations: 0 / 440.8 MB, free: 5.062 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.004525/0.3309, allocations: 1.479 MB / 442.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.494e-05/0.3309, allocations: 9.641 kB / 442.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001964/0.3311, allocations: 130.4 kB / 442.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002721/0.3339, allocations: 369.6 kB / 442.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.3341, allocations: 251.2 kB / 443.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.261e-05/0.3342, allocations: 64.16 kB / 443.1 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.3343, allocations: 82.97 kB / 443.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001765/0.3361, allocations: 0.8761 MB / 444.1 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.12e-05/0.3361, allocations: 13.02 kB / 444.1 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.555e-05/0.3362, allocations: 31.38 kB / 444.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.3362, allocations: 20.41 kB / 444.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.3379, allocations: 0.7875 MB / 444.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004081/0.342, allocations: 3.017 MB / 447.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3431, allocations: 0.9662 MB / 448.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005095/0.3436, allocations: 217.7 kB / 449.1 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001558/0.3438, allocations: 179.3 kB / 449.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.3438, allocations: 46.31 kB / 449.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.364e-06/0.3438, allocations: 0 / 449.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.008008/0.3518, allocations: 2.392 MB / 451.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.3519, allocations: 87.08 kB / 451.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004075/0.3523, allocations: 309.8 kB / 452.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.758e-05/0.3524, allocations: 36.08 kB / 452.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002802/0.3527, allocations: 371.8 kB / 452.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.3529, allocations: 222.8 kB / 452.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.3531, allocations: 145.6 kB / 452.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3533, allocations: 352.7 kB / 453.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007704/0.3541, allocations: 272.2 kB / 453.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.3551, allocations: 0.5008 MB / 454 MB, free: 13.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001904/0.357, allocations: 0.805 MB / 454.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/0.357, allocations: 3.156 kB / 454.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002365/0.3594, allocations: 0.8942 MB / 455.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.3594, allocations: 8.781 kB / 455.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.3594, allocations: 11.78 kB / 455.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002901/0.3597, allocations: 71.61 kB / 455.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008995/0.3606, allocations: 195.3 kB / 456 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/0.3636, allocations: 2.871 MB / 458.8 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00092/0.3645, allocations: 57.44 kB / 458.9 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.3646, allocations: 42.84 kB / 458.9 MB, free: 9.34 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.0005942/0.3652, allocations: 212.6 kB / 459.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.3655, allocations: 48.95 kB / 459.2 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.368, allocations: 0.7209 MB / 459.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.368, allocations: 10.41 kB / 459.9 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.368, allocations: 1.125 kB / 459.9 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.368, allocations: 2.859 kB / 459.9 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00354/0.3716, allocations: 1.416 MB / 461.3 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.3716, allocations: 7.688 kB / 461.4 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006805/0.3722, allocations: 132.5 kB / 461.5 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002167/0.3725, allocations: 55.48 kB / 461.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.3725, allocations: 16.39 kB / 461.6 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.3749, allocations: 2.845 MB / 464.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3749, allocations: 1.125 kB / 464.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/0.3776, allocations: 1.08 MB / 465.5 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.3779, allocations: 169.4 kB / 465.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.525e-05/0.3779, allocations: 15.39 kB / 465.7 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.3785, allocations: 43.83 kB / 465.7 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.3786, allocations: 49.31 kB / 465.8 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.3786, allocations: 19.42 kB / 465.8 MB, free: 3.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002564/0.3789, allocations: 208.2 kB / 466 MB, free: 3.844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3789, allocations: 4 kB / 466 MB, free: 3.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008461/0.3797, allocations: 177.8 kB / 466.2 MB, free: 3.812 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.003258/0.383, allocations: 1.673 MB / 467.8 MB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00213/0.3851, allocations: 0.8717 MB / 468.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3851, allocations: 0 / 468.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.3862, allocations: 0.526 MB / 469.2 MB, free: 1.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004942/0.3867, allocations: 52.92 kB / 469.3 MB, free: 1.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009914/0.3966, allocations: 5.098 MB / 474.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.3971, allocations: 0.8794 MB / 475.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003675/0.3975, allocations: 81.61 kB / 475.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/0.3979, allocations: 224.3 kB / 475.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3979, allocations: 4 kB / 475.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05859/0.4565, allocations: 11.37 MB / 486.9 MB, free: 2.844 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.47, allocations: 8.438 kB / 486.9 MB, free: 2.836 MB / 382.1 MB " [Timeout remaining time 646] (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: 15.801275157136843]