Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.001979/0.001979, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.002146/0.002146, allocations: 186.8 kB / 23.72 MB, free: 4.684 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.607/1.607, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 51.92 kB / 370.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4072, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.00555/0.4128, allocations: 2.864 MB / 425.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.4146, allocations: 0.7556 MB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.4149, allocations: 7.938 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.4152, allocations: 67.44 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003401/0.4155, allocations: 91.19 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003326/0.4158, allocations: 99.86 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005216/0.4164, allocations: 410.4 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.4166, allocations: 99.36 kB / 427 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003311/0.4169, allocations: 163.4 kB / 427.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.4172, allocations: 179.2 kB / 427.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.86e-05/0.4173, allocations: 32 kB / 427.4 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.79e-05/0.4173, allocations: 36 kB / 427.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.807e-05/0.4174, allocations: 67.77 kB / 427.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.4176, allocations: 183.1 kB / 427.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005401/0.4182, allocations: 402.7 kB / 428.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4182, allocations: 0 / 428.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4182, allocations: 0 / 428.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.4182, allocations: 7.938 kB / 428.1 MB, free: 9.152 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001335/0.4195, allocations: 0.5831 MB / 428.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.4196, allocations: 12.03 kB / 428.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.783e-05/0.4197, allocations: 70.72 kB / 428.7 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.795e-05/0.4197, allocations: 40.7 kB / 428.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.4202, allocations: 214.9 kB / 429 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.868e-05/0.4203, allocations: 25.03 kB / 429 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.582e-05/0.4203, allocations: 32.38 kB / 429 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006012/0.4209, allocations: 286.2 kB / 429.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.4209, allocations: 0 / 429.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.421, allocations: 23.98 kB / 429.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.421, allocations: 11.98 kB / 429.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006255/0.4216, allocations: 254.4 kB / 429.6 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.4235, allocations: 1.041 MB / 430.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004002/0.4239, allocations: 152.6 kB / 430.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.424, allocations: 64.81 kB / 430.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.4241, allocations: 7.906 kB / 430.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.4241, allocations: 34.56 kB / 430.9 MB, free: 6.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 2.595e-06/0.4241, allocations: 0 / 430.9 MB, free: 6.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002106/0.4262, allocations: 0.5879 MB / 431.5 MB, free: 5.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.4263, allocations: 55.41 kB / 431.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003766/0.4267, allocations: 281.8 kB / 431.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.4267, allocations: 33.64 kB / 431.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.4269, allocations: 240 kB / 432.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.88e-05/0.4269, allocations: 75.31 kB / 432.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.427, allocations: 65.66 kB / 432.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4272, allocations: 342.8 kB / 432.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.4275, allocations: 99.92 kB / 432.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003529/0.4279, allocations: 188.2 kB / 432.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/0.4285, allocations: 310.9 kB / 433.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4285, allocations: 4 kB / 433.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00092/0.4294, allocations: 393 kB / 433.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.4294, allocations: 8 kB / 433.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.4294, allocations: 4.406 kB / 433.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/0.4297, allocations: 65.61 kB / 433.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.4301, allocations: 71.89 kB / 433.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002472/0.4325, allocations: 2.627 MB / 436.3 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003393/0.4329, allocations: 19.98 kB / 436.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.4329, allocations: 20.25 kB / 436.3 MB, free: 320 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0002492/0.4332, allocations: 153.7 kB / 436.5 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.393e-05/0.4332, allocations: 27.84 kB / 436.5 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.249e-05/0.4333, allocations: 30.27 kB / 436.5 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.4333, allocations: 4 kB / 436.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4333, allocations: 0 / 436.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.4333, allocations: 0 / 436.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004477/0.4338, allocations: 316.5 kB / 436.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.4338, allocations: 4 kB / 436.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.434, allocations: 39.91 kB / 436.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001806/0.4342, allocations: 57.67 kB / 436.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.4342, allocations: 4 kB / 437 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/0.4365, allocations: 2.63 MB / 439.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.4365, allocations: 4.125 kB / 439.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007725/0.4372, allocations: 378.2 kB / 440 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.675e-05/0.4373, allocations: 23.86 kB / 440 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.4373, allocations: 4 kB / 440 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.4375, allocations: 19.97 kB / 440 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.849e-05/0.4376, allocations: 19.97 kB / 440 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.4376, allocations: 4 kB / 440 MB, free: 12.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.4379, allocations: 197.2 kB / 440.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4379, allocations: 0 / 440.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004911/0.4384, allocations: 72 kB / 440.3 MB, free: 12.04 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.001234/0.4396, allocations: 0.9184 MB / 441.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.4407, allocations: 484.5 kB / 441.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4407, allocations: 0 / 441.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005628/0.4413, allocations: 337.2 kB / 442 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005024/0.4418, allocations: 32.86 kB / 442 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005214/0.447, allocations: 3.018 MB / 445.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.4476, allocations: 0.7714 MB / 445.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001388/0.4478, allocations: 34.36 kB / 445.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.4479, allocations: 99.41 kB / 446 MB, free: 6.09 MB / 350.1 MB Notification: Performance of SimCode: time 1.513e-06/0.4479, allocations: 0 / 446 MB, free: 6.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04496/0.4929, allocations: 5.991 MB / 452 MB, free: 284 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.57, allocations: 0 / 452 MB, free: 284 kB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.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.23295187111944]