Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.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.0008324/0.0008324, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008519/0.0008519, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8882/0.8882, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.4e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002891/0.002915, allocations: 2.677 MB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000998/0.003913, allocations: 0.7632 MB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.004029, allocations: 4 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.004204, allocations: 71.36 kB / 328.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.004408, allocations: 111 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.005675, allocations: 111.8 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004562/0.006132, allocations: 410.8 kB / 328.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.006319, allocations: 98.97 kB / 328.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003616/0.006681, allocations: 235.5 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.00681, allocations: 131.6 kB / 329.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.541e-05/0.006845, allocations: 32 kB / 329.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.004e-05/0.006875, allocations: 36 kB / 329.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.381e-05/0.006919, allocations: 79.66 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.844e-05/0.006997, allocations: 119.7 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.007314, allocations: 426.6 kB / 329.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.007317, allocations: 0 / 329.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.007318, allocations: 0 / 329.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.007323, allocations: 0 / 329.8 MB, free: 10.65 MB / 298.7 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.0007341/0.008057, allocations: 0.5791 MB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.008093, allocations: 12.03 kB / 330.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.207e-05/0.008145, allocations: 66.72 kB / 330.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.502e-05/0.00819, allocations: 40.7 kB / 330.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.008466, allocations: 217.2 kB / 330.7 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.008492, allocations: 21.03 kB / 330.8 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.008527, allocations: 32.38 kB / 330.8 MB, free: 9.621 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.00888, allocations: 290.6 kB / 331.1 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.008889, allocations: 4.188 kB / 331.1 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.008909, allocations: 16.12 kB / 331.1 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.008918, allocations: 8 kB / 331.1 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003501/0.009268, allocations: 254.4 kB / 331.4 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.0103, allocations: 0.9215 MB / 332.3 MB, free: 8.059 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.01054, allocations: 141.4 kB / 332.4 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.768e-05/0.01064, allocations: 56.83 kB / 332.5 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.01066, allocations: 7.984 kB / 332.5 MB, free: 7.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.01068, allocations: 38.5 kB / 332.5 MB, free: 7.801 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.112e-06/0.01068, allocations: 8 kB / 332.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001156/0.01184, allocations: 0.5984 MB / 333.1 MB, free: 7.184 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.01187, allocations: 55.41 kB / 333.2 MB, free: 7.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.01206, allocations: 292.1 kB / 333.5 MB, free: 6.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.01208, allocations: 25.7 kB / 333.5 MB, free: 6.789 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.585e-05/0.01217, allocations: 240.1 kB / 333.7 MB, free: 6.551 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.684e-05/0.01221, allocations: 87.19 kB / 333.8 MB, free: 6.465 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.517e-05/0.01227, allocations: 61.66 kB / 333.9 MB, free: 6.398 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.228e-05/0.01236, allocations: 350.7 kB / 334.2 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.01252, allocations: 91.94 kB / 334.3 MB, free: 5.957 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.01271, allocations: 200 kB / 334.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.01305, allocations: 302.1 kB / 334.8 MB, free: 5.379 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.01305, allocations: 0 / 334.8 MB, free: 5.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004655/0.01352, allocations: 401 kB / 335.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.01353, allocations: 8 kB / 335.2 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01354, allocations: 0 / 335.2 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.0137, allocations: 70.02 kB / 335.3 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.01386, allocations: 71.89 kB / 335.3 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/0.01508, allocations: 2.622 MB / 338 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.0152, allocations: 19.98 kB / 338 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.01522, allocations: 19.98 kB / 338 MB, free: 1.93 MB / 298.7 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.0001024/0.01532, allocations: 149.7 kB / 338.1 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.01535, allocations: 27.81 kB / 338.2 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.871e-05/0.01543, allocations: 34.3 kB / 338.2 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.01543, allocations: 4.062 kB / 338.2 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.01544, allocations: 4 kB / 338.2 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.01544, allocations: 0 / 338.2 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.01568, allocations: 276.6 kB / 338.5 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01568, allocations: 0 / 338.5 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.0158, allocations: 43.89 kB / 338.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.0159, allocations: 61.67 kB / 338.6 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.01592, allocations: 4 kB / 338.6 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/0.01701, allocations: 2.614 MB / 341.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.01701, allocations: 8.297 kB / 341.2 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003905/0.01741, allocations: 367.8 kB / 341.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.554e-05/0.01743, allocations: 31.78 kB / 341.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.01745, allocations: 7.938 kB / 341.6 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.832e-05/0.01755, allocations: 15.98 kB / 341.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/0.01759, allocations: 19.97 kB / 341.6 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.0176, allocations: 11.98 kB / 341.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001276/0.01773, allocations: 199.1 kB / 341.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01773, allocations: 3.938 kB / 341.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002391/0.01797, allocations: 76 kB / 341.9 MB, free: 13.68 MB / 314.7 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.0005624/0.01853, allocations: 0.9051 MB / 342.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005274/0.01906, allocations: 480.6 kB / 343.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01906, allocations: 0 / 343.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000269/0.01933, allocations: 337.2 kB / 343.6 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.01958, allocations: 29.94 kB / 343.7 MB, free: 11.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.02214, allocations: 3.031 MB / 346.7 MB, free: 8.664 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.02224, allocations: 168.8 kB / 346.8 MB, free: 8.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.191e-05/0.02233, allocations: 30.27 kB / 346.9 MB, free: 8.449 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.02243, allocations: 104.5 kB / 347 MB, free: 8.348 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.02243, allocations: 0 / 347 MB, free: 8.348 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.04508, allocations: 6.567 MB / 353.5 MB, free: 1.992 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.085/7.13, allocations: 7.797 kB / 353.6 MB, free: 1.984 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.740975287742913]