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.001597/0.001597, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001834/0.001834, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.478/1.478, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001772/0.001772, allocations: 51.91 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1148, allocations: 53.33 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.2623/0.3771, allocations: 5.108 MB / 431.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004467/0.3816, allocations: 2.175 MB / 433.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008574/0.3824, allocations: 16.66 kB / 433.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003874/0.3863, allocations: 1.418 MB / 435 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.3885, allocations: 429.2 kB / 435.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002712/0.3912, allocations: 1.211 MB / 436.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002006/0.3932, allocations: 0.7471 MB / 437.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.3945, allocations: 0.5045 MB / 437.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008341/0.3953, allocations: 345.2 kB / 438.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006627/0.396, allocations: 441.1 kB / 438.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000166/0.3961, allocations: 67.84 kB / 438.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001482/0.3976, allocations: 408.9 kB / 439.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.3978, allocations: 165.4 kB / 439.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005377/0.3983, allocations: 387.5 kB / 439.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003069/0.4014, allocations: 1.217 MB / 440.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4014, allocations: 0 / 440.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4014, allocations: 0 / 440.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.808e-05/0.4014, allocations: 0 / 440.9 MB, free: 5.031 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.006167/0.4076, allocations: 1.495 MB / 442.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.099e-05/0.4077, allocations: 9.062 kB / 442.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002272/0.4079, allocations: 130.9 kB / 442.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003025/0.4109, allocations: 365.4 kB / 442.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.4114, allocations: 257.9 kB / 443.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.4115, allocations: 67.47 kB / 443.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003546/0.4118, allocations: 87.83 kB / 443.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/0.4142, allocations: 0.8687 MB / 444.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.969e-05/0.4143, allocations: 5.016 kB / 444.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.198e-05/0.4143, allocations: 34.97 kB / 444.2 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.852e-05/0.4144, allocations: 20.27 kB / 444.2 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.4165, allocations: 0.7916 MB / 445 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005346/0.4219, allocations: 3.027 MB / 448.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.4231, allocations: 0.9535 MB / 449 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005309/0.4236, allocations: 220.1 kB / 449.2 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001949/0.4238, allocations: 184.8 kB / 449.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.4239, allocations: 37.41 kB / 449.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.655e-06/0.4239, allocations: 0 / 449.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.008536/0.4324, allocations: 2.398 MB / 451.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.4325, allocations: 84.34 kB / 451.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.433, allocations: 323 kB / 452.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.51e-05/0.4331, allocations: 37.2 kB / 452.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.4334, allocations: 371.7 kB / 452.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.4336, allocations: 226.8 kB / 452.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002621/0.4339, allocations: 146 kB / 453 MB, free: 13.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.434, allocations: 351.9 kB / 453.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008152/0.4349, allocations: 273.1 kB / 453.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.4359, allocations: 0.4998 MB / 454.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001924/0.4378, allocations: 0.8183 MB / 454.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/0.4379, allocations: 2.75 kB / 454.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0024/0.4403, allocations: 0.8882 MB / 455.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.4403, allocations: 13.78 kB / 455.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.4403, allocations: 11.34 kB / 455.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003195/0.4406, allocations: 73.19 kB / 455.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009152/0.4415, allocations: 199.2 kB / 456.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.4443, allocations: 2.868 MB / 459 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009186/0.4452, allocations: 63.53 kB / 459 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.76e-05/0.4453, allocations: 38.94 kB / 459.1 MB, free: 9.277 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.0004627/0.4458, allocations: 218.3 kB / 459.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.4459, allocations: 48.94 kB / 459.3 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002216/0.4482, allocations: 0.7221 MB / 460.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.4482, allocations: 6.469 kB / 460.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4482, allocations: 5.344 kB / 460.1 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.4482, allocations: 3.938 kB / 460.1 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.4514, allocations: 1.422 MB / 461.5 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.4514, allocations: 2.688 kB / 461.5 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007036/0.4521, allocations: 125.6 kB / 461.6 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002744/0.4524, allocations: 60.11 kB / 461.7 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.977e-05/0.4525, allocations: 16.95 kB / 461.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002579/0.455, allocations: 2.846 MB / 464.5 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.455, allocations: 5.062 kB / 464.6 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002946/0.458, allocations: 1.081 MB / 465.6 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003381/0.4583, allocations: 163.2 kB / 465.8 MB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.4584, allocations: 14.53 kB / 465.8 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005209/0.4589, allocations: 47.48 kB / 465.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4591, allocations: 52.86 kB / 465.9 MB, free: 3.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.372e-05/0.4591, allocations: 16.66 kB / 465.9 MB, free: 3.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002915/0.4594, allocations: 216.9 kB / 466.1 MB, free: 3.762 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4594, allocations: 1.031 kB / 466.1 MB, free: 3.762 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009315/0.4604, allocations: 182.5 kB / 466.3 MB, free: 3.73 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.003449/0.4638, allocations: 1.682 MB / 468 MB, free: 2.547 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.4663, allocations: 0.8717 MB / 468.9 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.4663, allocations: 7.938 kB / 468.9 MB, free: 2.016 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.4675, allocations: 0.5178 MB / 469.4 MB, free: 1.652 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007153/0.4682, allocations: 48.02 kB / 469.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.4794, allocations: 5.154 MB / 474.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006496/0.48, allocations: 0.8841 MB / 475.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004746/0.4805, allocations: 91.91 kB / 475.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004199/0.4809, allocations: 223.9 kB / 475.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of SimCode: time 1.764e-06/0.4809, allocations: 0 / 475.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05753/0.5385, allocations: 11.54 MB / 487.3 MB, free: 2.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.55, allocations: 11.88 kB / 487.3 MB, free: 2.465 MB / 382.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: 15.957230581901968]