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.001466/0.001466, 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.001396/0.001396, 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.44/1.44, allocations: 230.6 MB / 258.3 MB, free: 7.758 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 43.94 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.277, allocations: 53.37 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006915/0.2839, allocations: 4.584 MB / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003961/0.2879, allocations: 2.022 MB / 438.5 MB, free: 16 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005598/0.2884, allocations: 16 kB / 438.5 MB, free: 0 / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003497/0.2919, allocations: 1.298 MB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001571/0.2935, allocations: 413.4 kB / 440.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.2963, allocations: 1.15 MB / 441.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001414/0.2977, allocations: 0.7394 MB / 442.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001358/0.2991, allocations: 0.5792 MB / 442.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006883/0.2998, allocations: 350.8 kB / 443 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007064/0.3005, allocations: 430.3 kB / 443.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.3006, allocations: 68 kB / 443.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009695/0.3016, allocations: 403.6 kB / 443.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.3018, allocations: 171.4 kB / 444.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004751/0.3023, allocations: 306.6 kB / 444.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001984/0.3043, allocations: 1.226 MB / 445.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3043, allocations: 0 / 445.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3043, allocations: 0 / 445.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.643e-05/0.3043, allocations: 0 / 445.6 MB, free: 8.891 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.004937/0.3093, allocations: 1.417 MB / 447 MB, free: 7.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.3093, allocations: 12.03 kB / 447 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.104e-05/0.3093, allocations: 22.19 kB / 447 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002175/0.3096, allocations: 135.3 kB / 447.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002666/0.3122, allocations: 364.1 kB / 447.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.3125, allocations: 193.6 kB / 447.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.973e-05/0.3126, allocations: 66.38 kB / 447.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.3128, allocations: 87.92 kB / 447.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.3148, allocations: 0.8969 MB / 448.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/0.3148, allocations: 7.953 kB / 448.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.564e-05/0.3149, allocations: 32 kB / 448.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.3149, allocations: 20 kB / 448.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/0.317, allocations: 0.7925 MB / 449.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004975/0.3219, allocations: 2.402 MB / 452 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.3231, allocations: 0.5078 MB / 452.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005329/0.3237, allocations: 218.2 kB / 452.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001023/0.3238, allocations: 28.47 kB / 452.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.3238, allocations: 39.06 kB / 452.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.176e-06/0.3238, allocations: 0 / 452.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00764/0.3314, allocations: 2.171 MB / 455 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/0.3315, allocations: 85.61 kB / 455.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004199/0.3319, allocations: 324.4 kB / 455.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.394e-05/0.332, allocations: 33.7 kB / 455.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.3323, allocations: 371.9 kB / 455.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002383/0.3325, allocations: 222.1 kB / 456 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.3328, allocations: 150.6 kB / 456.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3329, allocations: 350.7 kB / 456.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007693/0.3337, allocations: 269.8 kB / 456.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009933/0.3347, allocations: 0.5294 MB / 457.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.3365, allocations: 0.8049 MB / 458.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.3365, allocations: 0 / 458.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002268/0.3388, allocations: 0.9049 MB / 459 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.3388, allocations: 8 kB / 459 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.3388, allocations: 12 kB / 459 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002796/0.3391, allocations: 69.66 kB / 459.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.3401, allocations: 203.7 kB / 459.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002667/0.3427, allocations: 2.657 MB / 461.9 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006802/0.3434, allocations: 60.08 kB / 462 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.858e-05/0.3435, allocations: 39.98 kB / 462 MB, free: 7.664 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.000373/0.3439, allocations: 213.6 kB / 462.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.344, allocations: 47.66 kB / 462.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.3459, allocations: 0.7182 MB / 463 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.3459, allocations: 19.92 kB / 463 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3459, allocations: 3.938 kB / 463 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.346, allocations: 0 / 463 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.349, allocations: 1.313 MB / 464.3 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.349, allocations: 0 / 464.3 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006835/0.3497, allocations: 127.8 kB / 464.5 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002507/0.3499, allocations: 61.66 kB / 464.5 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.857e-05/0.35, allocations: 19.98 kB / 464.5 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002503/0.3525, allocations: 2.646 MB / 467.2 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3525, allocations: 3.938 kB / 467.2 MB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.3551, allocations: 1.07 MB / 468.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/0.3553, allocations: 87.67 kB / 468.3 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.849e-05/0.3554, allocations: 12 kB / 468.4 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005193/0.3559, allocations: 51.94 kB / 468.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.3561, allocations: 44.41 kB / 468.4 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/0.3561, allocations: 16 kB / 468.5 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002689/0.3564, allocations: 223.1 kB / 468.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3564, allocations: 4 kB / 468.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007939/0.3572, allocations: 176 kB / 468.9 MB, free: 0.4961 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.003079/0.3602, allocations: 1.672 MB / 470.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.3624, allocations: 0.8843 MB / 471.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3624, allocations: 0 / 471.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.3634, allocations: 0.5199 MB / 471.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.3639, allocations: 45.09 kB / 472 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009947/0.3738, allocations: 5.154 MB / 477.1 MB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.3742, allocations: 290.7 kB / 477.4 MB, free: 7.535 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003924/0.3746, allocations: 88.5 kB / 477.5 MB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003908/0.375, allocations: 227.3 kB / 477.7 MB, free: 7.227 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.375, allocations: 0 / 477.7 MB, free: 7.227 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6343/1.009, allocations: 12.23 MB / 490 MB, free: 11.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.19/16.2, allocations: 11.88 kB / 490 MB, free: 11.23 MB / 398.1 MB " [Timeout remaining time 644] (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: 19.03797758196015]