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.00156/0.00156, allocations: 113 kB / 18.49 MB, free: 4.539 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.001695/0.001695, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.392/1.392, allocations: 230.6 MB / 254.8 MB, free: 15.21 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.001483/0.001483, allocations: 55.91 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 53.33 MB / 427 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006745/0.1099, allocations: 5.115 MB / 432.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003919/0.1138, allocations: 2.176 MB / 434.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003256/0.1141, allocations: 16 kB / 434.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003183/0.1173, allocations: 1.419 MB / 435.8 MB, free: 12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.1184, allocations: 421.4 kB / 436.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002329/0.1207, allocations: 1.222 MB / 437.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.1217, allocations: 0.7433 MB / 438.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009911/0.1227, allocations: 0.5011 MB / 438.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006203/0.1233, allocations: 346.8 kB / 439 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007414/0.1241, allocations: 430.3 kB / 439.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.1243, allocations: 71.94 kB / 439.5 MB, free: 8.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009874/0.1252, allocations: 407.7 kB / 439.9 MB, free: 7.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001678/0.1254, allocations: 167.4 kB / 440 MB, free: 7.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003882/0.1258, allocations: 390.1 kB / 440.4 MB, free: 7.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.1274, allocations: 1.218 MB / 441.6 MB, free: 6.102 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1274, allocations: 4 kB / 441.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1274, allocations: 0 / 441.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1274, allocations: 0 / 441.6 MB, free: 6.098 MB / 366.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.00461/0.132, allocations: 1.489 MB / 443.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/0.1321, allocations: 8.031 kB / 443.1 MB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.066e-05/0.1322, allocations: 30.11 kB / 443.2 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001743/0.1323, allocations: 131.4 kB / 443.3 MB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002577/0.1349, allocations: 368.1 kB / 443.6 MB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.1352, allocations: 259.8 kB / 443.9 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.223e-05/0.1353, allocations: 70.38 kB / 444 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.1354, allocations: 83.94 kB / 444.1 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.1371, allocations: 0.8719 MB / 444.9 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.1372, allocations: 3.953 kB / 444.9 MB, free: 2.691 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.631e-05/0.1373, allocations: 36 kB / 445 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.1373, allocations: 20 kB / 445 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/0.1391, allocations: 0.7886 MB / 445.8 MB, free: 1.844 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2096/0.3487, allocations: 3.012 MB / 448.8 MB, free: 22.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3498, allocations: 0.9654 MB / 449.7 MB, free: 22.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000644/0.3504, allocations: 216.8 kB / 450 MB, free: 22.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000152/0.3506, allocations: 177.9 kB / 450.1 MB, free: 21.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.3506, allocations: 44.41 kB / 450.2 MB, free: 21.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 4.468e-06/0.3506, allocations: 0 / 450.2 MB, free: 21.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.007079/0.3577, allocations: 2.402 MB / 452.6 MB, free: 21.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.3577, allocations: 84.3 kB / 452.7 MB, free: 21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003372/0.3581, allocations: 318 kB / 453 MB, free: 20.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.3581, allocations: 35.86 kB / 453 MB, free: 20.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.3583, allocations: 380.7 kB / 453.4 MB, free: 20.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.3584, allocations: 215.8 kB / 453.6 MB, free: 20.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.3586, allocations: 149.4 kB / 453.7 MB, free: 20.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.098e-05/0.3587, allocations: 352.4 kB / 454.1 MB, free: 19.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007127/0.3594, allocations: 269.1 kB / 454.3 MB, free: 19.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008476/0.3603, allocations: 0.504 MB / 454.8 MB, free: 19.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.3618, allocations: 0.8063 MB / 455.7 MB, free: 19.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3618, allocations: 2.75 kB / 455.7 MB, free: 19.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00206/0.3639, allocations: 0.9047 MB / 456.6 MB, free: 18.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3639, allocations: 8.734 kB / 456.6 MB, free: 18.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.3639, allocations: 8.578 kB / 456.6 MB, free: 18.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002748/0.3642, allocations: 70.59 kB / 456.6 MB, free: 18.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008474/0.365, allocations: 199.8 kB / 456.8 MB, free: 18.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.3665, allocations: 2.86 MB / 459.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006609/0.3672, allocations: 61.78 kB / 459.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.612e-05/0.3673, allocations: 35.34 kB / 459.8 MB, free: 15.77 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.0003192/0.3676, allocations: 220.9 kB / 460 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.3677, allocations: 47.81 kB / 460.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3696, allocations: 0.7293 MB / 460.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.3696, allocations: 9.219 kB / 460.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3696, allocations: 5.156 kB / 460.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.3696, allocations: 8.125 kB / 460.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.3722, allocations: 1.407 MB / 462.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3722, allocations: 0 / 462.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006326/0.3729, allocations: 135.8 kB / 462.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.3731, allocations: 62.77 kB / 462.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.3731, allocations: 19.58 kB / 462.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001328/0.3744, allocations: 2.843 MB / 465.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3744, allocations: 8.859 kB / 465.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/0.3768, allocations: 1.079 MB / 466.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.377, allocations: 163.7 kB / 466.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.077e-05/0.377, allocations: 11.81 kB / 466.5 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.3775, allocations: 48.98 kB / 466.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3776, allocations: 42.03 kB / 466.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/0.3777, allocations: 19.55 kB / 466.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000225/0.3779, allocations: 224.9 kB / 466.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3779, allocations: 0 / 466.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008106/0.3787, allocations: 183.3 kB / 467 MB, free: 10.82 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.002743/0.3814, allocations: 1.678 MB / 468.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00197/0.3834, allocations: 0.8852 MB / 469.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3834, allocations: 0 / 469.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008893/0.3843, allocations: 0.5179 MB / 470.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.3847, allocations: 47.34 kB / 470.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008094/0.3928, allocations: 5.147 MB / 475.3 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.3932, allocations: 0.8827 MB / 476.2 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003445/0.3936, allocations: 89.94 kB / 476.3 MB, free: 5.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000294/0.3939, allocations: 225.2 kB / 476.5 MB, free: 4.957 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3939, allocations: 0 / 476.5 MB, free: 4.957 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05087/0.4447, allocations: 11.59 MB / 488.1 MB, free: 472 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.1, allocations: 10.23 kB / 488.1 MB, free: 468 kB / 366.1 MB " [Timeout remaining time 646] (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: 16.57334408897441]