Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001329/0.001329, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001472/0.001472, allocations: 203.9 kB / 23.73 MB, free: 4.379 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.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_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_1_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.001534/0.001534, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.292, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007511/0.2995, allocations: 4.584 MB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004531/0.304, allocations: 2.028 MB / 437.7 MB, free: 4 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005103/0.3046, allocations: 16.05 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003583/0.3081, allocations: 1.302 MB / 439 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.3096, allocations: 417.4 kB / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002374/0.3119, allocations: 1.14 MB / 440.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009817/0.3129, allocations: 0.7433 MB / 441.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000935/0.3138, allocations: 0.5808 MB / 441.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.3143, allocations: 342.8 kB / 442.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005541/0.3149, allocations: 434.3 kB / 442.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.315, allocations: 72 kB / 442.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000943/0.3159, allocations: 411.5 kB / 443.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001779/0.3161, allocations: 163.4 kB / 443.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.3165, allocations: 314.5 kB / 443.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00178/0.3182, allocations: 1.222 MB / 444.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3183, allocations: 0 / 444.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3183, allocations: 0 / 444.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3183, allocations: 0 / 444.8 MB, free: 8.875 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.004695/0.323, allocations: 1.41 MB / 446.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.323, allocations: 12.03 kB / 446.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.3232, allocations: 135.4 kB / 446.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002594/0.3258, allocations: 360.1 kB / 446.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.3261, allocations: 201.6 kB / 446.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.949e-05/0.3261, allocations: 74.31 kB / 447 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.3263, allocations: 84.12 kB / 447.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.3281, allocations: 0.8931 MB / 448 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.997e-05/0.3281, allocations: 3.953 kB / 448 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.484e-05/0.3282, allocations: 39.98 kB / 448 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.3282, allocations: 20 kB / 448 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/0.33, allocations: 0.7925 MB / 448.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004802/0.3348, allocations: 2.398 MB / 451.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.336, allocations: 0.5118 MB / 451.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005177/0.3365, allocations: 214.2 kB / 451.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001102/0.3366, allocations: 20.48 kB / 452 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.3367, allocations: 43.05 kB / 452 MB, free: 1.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.505e-06/0.3367, allocations: 0 / 452 MB, free: 1.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007761/0.3444, allocations: 2.171 MB / 454.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3445, allocations: 85.61 kB / 454.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005502/0.3451, allocations: 328.3 kB / 454.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.568e-05/0.3451, allocations: 33.7 kB / 454.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003229/0.3454, allocations: 379.9 kB / 455 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002151/0.3457, allocations: 218.1 kB / 455.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002556/0.3459, allocations: 150.6 kB / 455.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002291/0.3461, allocations: 358.7 kB / 455.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007625/0.3469, allocations: 269.8 kB / 456 MB, free: 13.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009965/0.3479, allocations: 0.5256 MB / 456.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.3496, allocations: 0.8087 MB / 457.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3496, allocations: 4 kB / 457.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002137/0.3517, allocations: 0.8972 MB / 458.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.3517, allocations: 11.94 kB / 458.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.3517, allocations: 8 kB / 458.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002842/0.352, allocations: 73.61 kB / 458.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009775/0.353, allocations: 203.7 kB / 458.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.3553, allocations: 2.657 MB / 461.1 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000673/0.3559, allocations: 51.95 kB / 461.2 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/0.356, allocations: 39.98 kB / 461.2 MB, free: 7.668 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.0003209/0.3563, allocations: 213.6 kB / 461.4 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3564, allocations: 51.72 kB / 461.5 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.3584, allocations: 0.7259 MB / 462.2 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.3584, allocations: 8 kB / 462.2 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3584, allocations: 0 / 462.2 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3584, allocations: 11.86 kB / 462.2 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.3612, allocations: 1.306 MB / 463.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3612, allocations: 0 / 463.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006924/0.3619, allocations: 135.8 kB / 463.7 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002139/0.3621, allocations: 53.67 kB / 463.7 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.553e-05/0.3622, allocations: 27.92 kB / 463.8 MB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/0.3645, allocations: 2.622 MB / 466.4 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3645, allocations: 3.938 kB / 466.4 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/0.3673, allocations: 1.082 MB / 467.5 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002458/0.3676, allocations: 87.67 kB / 467.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.454e-05/0.3676, allocations: 12 kB / 467.6 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.3682, allocations: 48.02 kB / 467.6 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.3683, allocations: 52.34 kB / 467.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.3684, allocations: 19.98 kB / 467.7 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002475/0.3686, allocations: 219.1 kB / 467.9 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3686, allocations: 4 kB / 467.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007442/0.3693, allocations: 175.9 kB / 468.1 MB, free: 0.5 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.003014/0.3724, allocations: 1.669 MB / 469.7 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.3744, allocations: 0.8846 MB / 470.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3744, allocations: 0 / 470.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009938/0.3754, allocations: 0.5118 MB / 471.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.3758, allocations: 56.95 kB / 471.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009483/0.3853, allocations: 5.158 MB / 476.3 MB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.3857, allocations: 286.7 kB / 476.6 MB, free: 7.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004037/0.3861, allocations: 88.45 kB / 476.7 MB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.3864, allocations: 223.3 kB / 476.9 MB, free: 7.234 MB / 382.1 MB Notification: Performance of SimCode: time 1.644e-06/0.3865, allocations: 0 / 476.9 MB, free: 7.234 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05287/0.4393, allocations: 12.6 MB / 489.5 MB, free: 10.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.8, allocations: 15.62 kB / 489.5 MB, free: 10.86 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.299348357977578]