Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.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.0013/0.0013, allocations: 113.2 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.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.001419/0.001419, allocations: 208 kB / 23.74 MB, free: 4.66 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.566/1.566, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 43.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3464, allocations: 53.37 MB / 431.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00511/0.3515, allocations: 2.846 MB / 434 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.3536, allocations: 0.7983 MB / 434.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000408/0.354, allocations: 8 kB / 434.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003868/0.3544, allocations: 71.36 kB / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006142/0.355, allocations: 91.25 kB / 435 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000447/0.3555, allocations: 115.7 kB / 435.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006949/0.3562, allocations: 390.5 kB / 435.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.3564, allocations: 95.33 kB / 435.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004486/0.3569, allocations: 163.4 kB / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.3571, allocations: 175.2 kB / 435.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.152e-05/0.3572, allocations: 32 kB / 435.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.836e-05/0.3573, allocations: 36 kB / 435.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.194e-05/0.3573, allocations: 75.69 kB / 436 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.3575, allocations: 171.1 kB / 436.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005124/0.358, allocations: 406.6 kB / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.358, allocations: 0 / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.358, allocations: 0 / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.358, allocations: 0 / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001201/0.3592, allocations: 0.5714 MB / 437.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3593, allocations: 12.02 kB / 437.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.074e-05/0.3594, allocations: 66.73 kB / 437.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.774e-05/0.3594, allocations: 44.69 kB / 437.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004872/0.3599, allocations: 222.8 kB / 437.5 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.36, allocations: 25.03 kB / 437.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.126e-05/0.36, allocations: 28.38 kB / 437.5 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006336/0.3607, allocations: 294.1 kB / 437.8 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3607, allocations: 0 / 437.8 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.3607, allocations: 15.98 kB / 437.9 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.3607, allocations: 4 kB / 437.9 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000636/0.3614, allocations: 254.5 kB / 438.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.3632, allocations: 1.045 MB / 439.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003874/0.3636, allocations: 146.4 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.3638, allocations: 64.83 kB / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.3638, allocations: 4 kB / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.3639, allocations: 38.55 kB / 439.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.853e-06/0.3639, allocations: 0 / 439.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002034/0.3659, allocations: 0.5898 MB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.366, allocations: 55.41 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.3663, allocations: 273.7 kB / 440.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.3663, allocations: 25.7 kB / 440.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.3665, allocations: 232.1 kB / 440.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.826e-05/0.3665, allocations: 83.3 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3667, allocations: 65.44 kB / 440.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3668, allocations: 338.8 kB / 441 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002852/0.3671, allocations: 103.9 kB / 441.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003503/0.3675, allocations: 184.2 kB / 441.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/0.3681, allocations: 305.1 kB / 441.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3681, allocations: 0 / 441.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008642/0.3689, allocations: 389.1 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.369, allocations: 10.81 kB / 442 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.369, allocations: 4 kB / 442 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002687/0.3692, allocations: 65.95 kB / 442.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000325/0.3696, allocations: 75.89 kB / 442.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.3718, allocations: 2.634 MB / 444.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.3721, allocations: 27.88 kB / 444.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/0.3721, allocations: 16 kB / 444.8 MB, free: 8.578 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001813/0.3723, allocations: 157.8 kB / 445 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.443e-05/0.3723, allocations: 27.84 kB / 445 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.029e-05/0.3724, allocations: 30.27 kB / 445 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3724, allocations: 4 kB / 445 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3724, allocations: 0 / 445 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3724, allocations: 0 / 445 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003782/0.3728, allocations: 308.5 kB / 445.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3728, allocations: 0 / 445.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/0.373, allocations: 51.89 kB / 445.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001468/0.3732, allocations: 49.69 kB / 445.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3732, allocations: 0 / 445.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002099/0.3753, allocations: 2.63 MB / 448.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3753, allocations: 0 / 448.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007275/0.376, allocations: 380.8 kB / 448.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.376, allocations: 15.86 kB / 448.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.3761, allocations: 11.98 kB / 448.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.3763, allocations: 15.98 kB / 448.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/0.3763, allocations: 19.97 kB / 448.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.3764, allocations: 7.984 kB / 448.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.3766, allocations: 185.2 kB / 448.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3766, allocations: 0 / 448.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003958/0.377, allocations: 72 kB / 448.8 MB, free: 4.324 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.001055/0.378, allocations: 0.9126 MB / 449.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009613/0.379, allocations: 473.2 kB / 450.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.379, allocations: 0 / 450.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005054/0.3795, allocations: 346 kB / 450.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.3798, allocations: 31.22 kB / 450.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.3845, allocations: 2.957 MB / 453.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.3849, allocations: 0.7713 MB / 454.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.3851, allocations: 34.41 kB / 454.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.3852, allocations: 99.41 kB / 454.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3852, allocations: 0 / 454.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04508/0.4303, allocations: 5.884 MB / 460.2 MB, free: 8.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.42, allocations: 3.984 kB / 460.3 MB, free: 8.703 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.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: 14.969798199133947]