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.001319/0.001319, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.001364/0.001364, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.541/1.541, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.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 0.002351/0.002351, allocations: 51.86 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1184, allocations: 53.33 MB / 426.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.0049/0.1233, allocations: 2.872 MB / 429.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.1251, allocations: 0.7945 MB / 430 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.1254, allocations: 4 kB / 430 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.1256, allocations: 63.42 kB / 430 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004233/0.1261, allocations: 99.19 kB / 430.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003598/0.1264, allocations: 115.8 kB / 430.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005644/0.127, allocations: 402.4 kB / 430.7 MB, free: 416 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.1272, allocations: 90.94 kB / 430.7 MB, free: 320 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003977/0.1276, allocations: 171.3 kB / 430.9 MB, free: 148 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2326/0.3602, allocations: 167.6 kB / 431.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.3604, allocations: 36.34 kB / 431.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.3605, allocations: 32.75 kB / 431.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-05/0.3606, allocations: 78.75 kB / 431.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.3608, allocations: 177.2 kB / 431.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005594/0.3614, allocations: 406.7 kB / 431.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3614, allocations: 3.094 kB / 431.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3614, allocations: 0 / 431.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.3614, allocations: 0.8125 kB / 431.8 MB, free: 7.848 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00121/0.3626, allocations: 0.6642 MB / 432.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.3626, allocations: 11.12 kB / 432.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.3627, allocations: 67.73 kB / 432.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.511e-05/0.3628, allocations: 39.61 kB / 432.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.3631, allocations: 278.9 kB / 432.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.3631, allocations: 24.94 kB / 432.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.3632, allocations: 37.22 kB / 432.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005561/0.3638, allocations: 293.4 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3638, allocations: 1.344 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.3638, allocations: 13.72 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.3638, allocations: 7.344 kB / 433.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005928/0.3644, allocations: 257 kB / 433.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.366, allocations: 1.11 MB / 434.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.3664, allocations: 149 kB / 434.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.3666, allocations: 65.94 kB / 434.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.3666, allocations: 3.5 kB / 434.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.3666, allocations: 35.98 kB / 434.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.253e-06/0.3666, allocations: 0 / 434.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002124/0.3688, allocations: 0.598 MB / 435.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.3688, allocations: 54.03 kB / 435.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003042/0.3691, allocations: 290.1 kB / 435.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.3691, allocations: 30.08 kB / 435.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.3692, allocations: 235.6 kB / 436 MB, free: 5.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.672e-05/0.3693, allocations: 74.84 kB / 436.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.3694, allocations: 62.52 kB / 436.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.3694, allocations: 338.8 kB / 436.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.3697, allocations: 97.41 kB / 436.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.3701, allocations: 199.4 kB / 436.8 MB, free: 5.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006164/0.3707, allocations: 296.7 kB / 437.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3707, allocations: 1.188 kB / 437.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008737/0.3716, allocations: 401.6 kB / 437.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3716, allocations: 10.72 kB / 437.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3716, allocations: 3.188 kB / 437.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002807/0.3719, allocations: 60.7 kB / 437.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.3722, allocations: 76.23 kB / 437.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.3738, allocations: 2.838 MB / 440.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.3741, allocations: 24.48 kB / 440.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.3741, allocations: 18.36 kB / 440.5 MB, free: 2.465 MB / 350.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.0001408/0.3742, allocations: 153.7 kB / 440.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.673e-05/0.3743, allocations: 29.11 kB / 440.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.453e-05/0.3744, allocations: 32.58 kB / 440.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3744, allocations: 3.031 kB / 440.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3744, allocations: 8.594 kB / 440.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3744, allocations: 2.328 kB / 440.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.3748, allocations: 337 kB / 441 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3748, allocations: 0.875 kB / 441 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/0.375, allocations: 41.33 kB / 441.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001614/0.3752, allocations: 57.94 kB / 441.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.3752, allocations: 5.672 kB / 441.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/0.3769, allocations: 2.83 MB / 444 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3769, allocations: 2 kB / 444 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008354/0.3778, allocations: 383 kB / 444.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.743e-05/0.3779, allocations: 97.47 kB / 444.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.3779, allocations: 6.312 kB / 444.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.3781, allocations: 19.03 kB / 444.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.98e-05/0.3782, allocations: 19.05 kB / 444.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.3782, allocations: 4.562 kB / 444.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002289/0.3784, allocations: 198.1 kB / 444.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3784, allocations: 5.469 kB / 444.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004192/0.3789, allocations: 75.91 kB / 444.8 MB, free: 14.7 MB / 366.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.001179/0.38, allocations: 0.9151 MB / 445.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.3811, allocations: 470 kB / 446.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3811, allocations: 1.25 kB / 446.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005621/0.3816, allocations: 345.2 kB / 446.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.382, allocations: 29.88 kB / 446.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005269/0.3873, allocations: 3.042 MB / 449.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.3878, allocations: 0.7729 MB / 450.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000137/0.3879, allocations: 27.94 kB / 450.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.3881, allocations: 102 kB / 450.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3881, allocations: 0 / 450.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04131/0.4294, allocations: 5.833 MB / 456.3 MB, free: 9.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/10.51, allocations: 9.359 kB / 456.3 MB, free: 9.785 MB / 366.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/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: 13.0546882560011]