Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001345/0.001345, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.00167/0.00167, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.486/1.486, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 47.92 kB / 370.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2722, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007447/0.2796, allocations: 5.128 MB / 427.8 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004179/0.2838, allocations: 2.121 MB / 429.9 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003831/0.2842, allocations: 16 kB / 429.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003338/0.2875, allocations: 1.406 MB / 431.3 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.289, allocations: 0.585 MB / 431.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002304/0.2913, allocations: 1.077 MB / 433 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001117/0.2925, allocations: 0.7472 MB / 433.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.2935, allocations: 0.5841 MB / 434.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005314/0.294, allocations: 346.7 kB / 434.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000565/0.2946, allocations: 430.3 kB / 435.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.2947, allocations: 68 kB / 435.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009387/0.2956, allocations: 395.6 kB / 435.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.2958, allocations: 167.4 kB / 435.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003593/0.2961, allocations: 382.1 kB / 436.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.2976, allocations: 1.206 MB / 437.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2976, allocations: 4 kB / 437.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2976, allocations: 0 / 437.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.2977, allocations: 0 / 437.3 MB, free: 15.95 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.004295/0.302, allocations: 1.398 MB / 438.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.302, allocations: 8.031 kB / 438.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001656/0.3022, allocations: 131.4 kB / 438.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/0.3048, allocations: 384.1 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.3051, allocations: 209.5 kB / 439.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.788e-05/0.3051, allocations: 62.38 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.3053, allocations: 88.12 kB / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.307, allocations: 0.8758 MB / 440.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.307, allocations: 0 / 440.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.876e-05/0.3071, allocations: 39.94 kB / 440.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.3071, allocations: 20 kB / 440.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.309, allocations: 0.8003 MB / 441.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004622/0.3136, allocations: 2.763 MB / 444 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.3147, allocations: 0.5156 MB / 444.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005405/0.3153, allocations: 222.2 kB / 444.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.997e-05/0.3153, allocations: 20.47 kB / 444.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.3154, allocations: 47.06 kB / 444.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.224e-06/0.3154, allocations: 0 / 444.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007888/0.3233, allocations: 2.198 MB / 447 MB, free: 5.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.3233, allocations: 85.61 kB / 447.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.3237, allocations: 316.5 kB / 447.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.043e-05/0.3238, allocations: 33.7 kB / 447.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/0.3241, allocations: 379.9 kB / 447.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.3242, allocations: 214.1 kB / 448 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.3245, allocations: 154.5 kB / 448.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3246, allocations: 354.7 kB / 448.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007905/0.3254, allocations: 273.8 kB / 448.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009975/0.3264, allocations: 0.5004 MB / 449.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00182/0.3283, allocations: 0.8166 MB / 450.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3283, allocations: 3.938 kB / 450.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002191/0.3305, allocations: 0.9085 MB / 451 MB, free: 1.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3305, allocations: 15.92 kB / 451 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3305, allocations: 7.938 kB / 451 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.3308, allocations: 74.11 kB / 451.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008889/0.3317, allocations: 203.7 kB / 451.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/0.334, allocations: 2.662 MB / 454 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007585/0.3348, allocations: 67.95 kB / 454 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.3349, allocations: 39.98 kB / 454.1 MB, free: 14.31 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.0003298/0.3352, allocations: 211.3 kB / 454.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.474e-05/0.3353, allocations: 47.66 kB / 454.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002029/0.3373, allocations: 0.7414 MB / 455.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.3373, allocations: 12 kB / 455.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3373, allocations: 0 / 455.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.758e-05/0.3373, allocations: 11.92 kB / 455.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.3402, allocations: 1.391 MB / 456.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.3402, allocations: 0 / 456.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006913/0.3409, allocations: 139.8 kB / 456.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002032/0.3411, allocations: 61.67 kB / 456.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.135e-05/0.3412, allocations: 15.98 kB / 456.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/0.3435, allocations: 2.645 MB / 459.4 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3435, allocations: 7.969 kB / 459.4 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002744/0.3462, allocations: 1.089 MB / 460.4 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.3465, allocations: 91.67 kB / 460.5 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.677e-05/0.3465, allocations: 8 kB / 460.5 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/0.347, allocations: 47.95 kB / 460.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.3472, allocations: 52.39 kB / 460.6 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.3472, allocations: 19.98 kB / 460.7 MB, free: 7.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002532/0.3475, allocations: 219.1 kB / 460.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3475, allocations: 0 / 460.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007102/0.3482, allocations: 183.9 kB / 461.1 MB, free: 7.004 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.003234/0.3514, allocations: 1.688 MB / 462.7 MB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.3536, allocations: 0.8884 MB / 463.6 MB, free: 4.375 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3536, allocations: 4.188 kB / 463.6 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.3548, allocations: 0.5195 MB / 464.2 MB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.3553, allocations: 64.39 kB / 464.2 MB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.3658, allocations: 5.216 MB / 469.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006172/0.3665, allocations: 0.8848 MB / 470.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004431/0.3669, allocations: 96.52 kB / 470.4 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.3673, allocations: 231.3 kB / 470.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3673, allocations: 0 / 470.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07051/0.4378, allocations: 11.93 MB / 482.6 MB, free: 1.258 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/14.87, allocations: 12.59 kB / 482.6 MB, free: 1.25 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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: 17.32472189096734]