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.001485/0.001485, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001557/0.001557, allocations: 185.1 kB / 24.49 MB, free: 3.961 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.344/1.344, allocations: 225.7 MB / 253.3 MB, free: 12.88 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 47.92 kB / 371.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2268, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.00641/0.2332, allocations: 4.563 MB / 427.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003483/0.2367, allocations: 1.948 MB / 429.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003231/0.237, allocations: 16 kB / 429.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00307/0.2401, allocations: 1.305 MB / 431.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001488/0.2416, allocations: 0.5629 MB / 431.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002171/0.2437, allocations: 0.9885 MB / 432.8 MB, free: 5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.245, allocations: 0.7511 MB / 433.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.2461, allocations: 0.587 MB / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005963/0.2467, allocations: 346.8 kB / 434.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000679/0.2474, allocations: 430.3 kB / 434.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.2476, allocations: 68 kB / 434.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009507/0.2485, allocations: 391.5 kB / 435.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002014/0.2487, allocations: 167.4 kB / 435.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004451/0.2492, allocations: 306.6 kB / 435.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001792/0.251, allocations: 1.21 MB / 437 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.251, allocations: 0 / 437 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.251, allocations: 3.938 kB / 437 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.775e-05/0.251, allocations: 4 kB / 437 MB, free: 0.7539 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.005049/0.2561, allocations: 1.39 MB / 438.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.2561, allocations: 12.03 kB / 438.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.308e-05/0.2561, allocations: 26.19 kB / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/0.2563, allocations: 131.4 kB / 438.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002628/0.259, allocations: 388.1 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.2592, allocations: 201.5 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.491e-05/0.2593, allocations: 62.38 kB / 439.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.2595, allocations: 95.88 kB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.2614, allocations: 0.9008 MB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/0.2614, allocations: 4 kB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-05/0.2615, allocations: 36 kB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.2615, allocations: 20 kB / 440.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.2634, allocations: 0.8003 MB / 441 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.2681, allocations: 2.386 MB / 443.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2692, allocations: 0.5122 MB / 443.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000557/0.2697, allocations: 218.2 kB / 444.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.745e-05/0.2698, allocations: 16.48 kB / 444.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.2698, allocations: 39.06 kB / 444.2 MB, free: 9.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.575e-06/0.2699, allocations: 4 kB / 444.2 MB, free: 9.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.008061/0.2779, allocations: 2.202 MB / 446.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.201e-05/0.278, allocations: 81.61 kB / 446.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.2784, allocations: 316.5 kB / 446.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.673e-05/0.2784, allocations: 37.7 kB / 446.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/0.2787, allocations: 375.9 kB / 447.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.2789, allocations: 226.1 kB / 447.4 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.2791, allocations: 154.5 kB / 447.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.2793, allocations: 350.7 kB / 447.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008195/0.2801, allocations: 269.8 kB / 448.2 MB, free: 5.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.2811, allocations: 0.5411 MB / 448.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.2829, allocations: 0.8088 MB / 449.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.2829, allocations: 3.938 kB / 449.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002225/0.2852, allocations: 0.9082 MB / 450.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.2852, allocations: 8.656 kB / 450.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.2852, allocations: 8 kB / 450.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002696/0.2855, allocations: 77.7 kB / 450.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008989/0.2864, allocations: 207.6 kB / 450.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/0.2887, allocations: 2.658 MB / 453.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007492/0.2894, allocations: 64.08 kB / 453.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.133e-05/0.2895, allocations: 39.98 kB / 453.5 MB, free: 15.46 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.0003501/0.2899, allocations: 213.6 kB / 453.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.29, allocations: 47.66 kB / 453.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.2921, allocations: 0.7414 MB / 454.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.2921, allocations: 4 kB / 454.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.2921, allocations: 7.938 kB / 454.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.2921, allocations: 3.984 kB / 454.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002841/0.2949, allocations: 1.313 MB / 455.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.2949, allocations: 0 / 455.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/0.2956, allocations: 131.8 kB / 455.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002095/0.2958, allocations: 61.67 kB / 456 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/0.2959, allocations: 15.98 kB / 456 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002374/0.2983, allocations: 2.645 MB / 458.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/0.2983, allocations: 7.922 kB / 458.7 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002729/0.301, allocations: 1.086 MB / 459.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.3012, allocations: 91.67 kB / 459.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.746e-05/0.3013, allocations: 8 kB / 459.9 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005277/0.3018, allocations: 56 kB / 459.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.302, allocations: 48.41 kB / 460 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.302, allocations: 19.98 kB / 460 MB, free: 8.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.3022, allocations: 223 kB / 460.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3022, allocations: 0 / 460.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007204/0.303, allocations: 179.9 kB / 460.4 MB, free: 8.234 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.003204/0.3062, allocations: 1.69 MB / 462.1 MB, free: 6.512 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0022/0.3084, allocations: 0.8807 MB / 462.9 MB, free: 5.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3084, allocations: 4.062 kB / 462.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.3095, allocations: 0.5195 MB / 463.5 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.3099, allocations: 52.53 kB / 463.5 MB, free: 5.016 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009714/0.3196, allocations: 5.228 MB / 468.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3199, allocations: 286.6 kB / 469 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000392/0.3203, allocations: 92.52 kB / 469.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003562/0.3207, allocations: 227.3 kB / 469.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3207, allocations: 0 / 469.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04289/0.3636, allocations: 12.05 MB / 481.4 MB, free: 3.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/14.51, allocations: 14.05 kB / 481.4 MB, free: 3.059 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: 16.826316217076965]