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.000915/0.000915, allocations: 76.08 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.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.0009896/0.0009896, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.895/0.895, allocations: 173.4 MB / 200.4 MB, free: 9.453 MB / 186.7 MB " [Timeout remaining time 179] 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 2.635e-06/2.635e-06, allocations: 0 / 318.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.291e-05/1.554e-05, allocations: 2.281 kB / 318.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002663/0.002679, allocations: 2.651 MB / 321.1 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008562/0.003535, allocations: 0.7204 MB / 321.8 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.003644, allocations: 4 kB / 321.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.003821, allocations: 55.44 kB / 321.9 MB, free: 2.797 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.004028, allocations: 115 kB / 322 MB, free: 2.684 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.004213, allocations: 115.7 kB / 322.1 MB, free: 2.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002576/0.004471, allocations: 418.2 kB / 322.5 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.004621, allocations: 91.28 kB / 322.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.004843, allocations: 235.5 kB / 322.8 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.004968, allocations: 119.6 kB / 322.9 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.058e-05/0.005009, allocations: 36 kB / 323 MB, free: 1.688 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.829e-05/0.005037, allocations: 36 kB / 323 MB, free: 1.652 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.529e-05/0.005082, allocations: 83.66 kB / 323.1 MB, free: 1.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.865e-05/0.005161, allocations: 127.7 kB / 323.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.005437, allocations: 406.7 kB / 323.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.005439, allocations: 0 / 323.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.00544, allocations: 0 / 323.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.005445, allocations: 0 / 323.6 MB, free: 1.047 MB / 282.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.0007229/0.006168, allocations: 0.5753 MB / 324.2 MB, free: 452 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.006204, allocations: 12.92 kB / 324.2 MB, free: 440 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.053e-05/0.006254, allocations: 66.72 kB / 324.3 MB, free: 364 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.8e-05/0.006302, allocations: 40.7 kB / 324.3 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.006542, allocations: 226.1 kB / 324.5 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.006564, allocations: 21.03 kB / 324.5 MB, free: 44 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.006597, allocations: 36.38 kB / 324.6 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.00697, allocations: 294.5 kB / 324.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.547e-06/0.006979, allocations: 192 / 324.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.007001, allocations: 16.12 kB / 324.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.007009, allocations: 8 kB / 324.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003484/0.007357, allocations: 250.5 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.008411, allocations: 0.9254 MB / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.008649, allocations: 138.5 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.008751, allocations: 64.83 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.008777, allocations: 4 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.008799, allocations: 42.48 kB / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.0088, allocations: 0 / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001139/0.009939, allocations: 0.6012 MB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.009969, allocations: 51.41 kB / 327 MB, free: 13.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.01017, allocations: 281.8 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.01018, allocations: 29.7 kB / 327.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.01029, allocations: 232.1 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.01033, allocations: 83.3 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.546e-05/0.01041, allocations: 61.66 kB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.845e-05/0.0105, allocations: 342.8 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.01065, allocations: 95.92 kB / 328.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.01086, allocations: 199.8 kB / 328.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003547/0.01121, allocations: 301.1 kB / 328.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.01121, allocations: 0 / 328.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004779/0.01169, allocations: 404.9 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.01171, allocations: 8.344 kB / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.01172, allocations: 8 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.01188, allocations: 61.61 kB / 329 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.01205, allocations: 75.89 kB / 329.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.01336, allocations: 2.626 MB / 331.7 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.01349, allocations: 23.98 kB / 331.7 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.0135, allocations: 12 kB / 331.7 MB, free: 8.34 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.0001069/0.01361, allocations: 157.8 kB / 331.9 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.01364, allocations: 27.86 kB / 331.9 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/0.01368, allocations: 26.27 kB / 332 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.01368, allocations: 4 kB / 332 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.01369, allocations: 0 / 332 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.01369, allocations: 3.984 kB / 332 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.0139, allocations: 280.6 kB / 332.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.0139, allocations: 0 / 332.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.302e-05/0.014, allocations: 35.97 kB / 332.3 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.462e-05/0.01409, allocations: 57.67 kB / 332.3 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.0141, allocations: 4 kB / 332.3 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.01524, allocations: 2.626 MB / 335 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01524, allocations: 0 / 335 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.01564, allocations: 372.8 kB / 335.3 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.893e-05/0.01567, allocations: 23.8 kB / 335.3 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.01569, allocations: 16.06 kB / 335.4 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.827e-05/0.01578, allocations: 15.98 kB / 335.4 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.01583, allocations: 15.95 kB / 335.4 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.01584, allocations: 8 kB / 335.4 MB, free: 4.379 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001264/0.01597, allocations: 197.2 kB / 335.6 MB, free: 4.184 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01597, allocations: 0 / 335.6 MB, free: 4.184 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002409/0.01621, allocations: 79.94 kB / 335.7 MB, free: 4.105 MB / 298.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.0005732/0.01678, allocations: 0.9082 MB / 336.6 MB, free: 3.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000531/0.01731, allocations: 476.9 kB / 337 MB, free: 2.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01731, allocations: 0 / 337 MB, free: 2.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.01756, allocations: 338 kB / 337.4 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.0178, allocations: 28.48 kB / 337.4 MB, free: 2.293 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.02045, allocations: 3.004 MB / 340.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.02055, allocations: 172.8 kB / 340.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.119e-05/0.02063, allocations: 26.23 kB / 340.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.02073, allocations: 104.5 kB / 340.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02074, allocations: 0 / 340.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.04095, allocations: 6.524 MB / 347.2 MB, free: 8.473 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/7.642, allocations: 11.98 kB / 347.2 MB, free: 8.461 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/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: 9.291942623443902]