Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009129/0.0009129, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007888/0.0007888, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8906/0.8906, allocations: 177 MB / 204.1 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 324.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.558e-05/1.699e-05, allocations: 2.844 kB / 324.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003972/0.003989, allocations: 4.567 MB / 329.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002442/0.006431, allocations: 2.012 MB / 331.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.006633, allocations: 23.94 kB / 331.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.008136, allocations: 1.372 MB / 332.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006656/0.008801, allocations: 425.2 kB / 332.9 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.009944, allocations: 1.147 MB / 334.1 MB, free: 6.203 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005578/0.0105, allocations: 0.766 MB / 334.8 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006103/0.01111, allocations: 0.5597 MB / 335.4 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003821/0.01149, allocations: 490.9 kB / 335.9 MB, free: 4.387 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/0.01175, allocations: 323.1 kB / 336.2 MB, free: 4.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.639e-05/0.01181, allocations: 68 kB / 336.3 MB, free: 4.004 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005101/0.01232, allocations: 391.4 kB / 336.6 MB, free: 3.621 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-05/0.0124, allocations: 171.3 kB / 336.8 MB, free: 3.453 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.01255, allocations: 255.3 kB / 337.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009047/0.01345, allocations: 1.25 MB / 338.3 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.01346, allocations: 4 kB / 338.3 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.01346, allocations: 0 / 338.3 MB, free: 1.945 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.01347, allocations: 0 / 338.3 MB, free: 1.945 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002437/0.01591, allocations: 1.402 MB / 339.7 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.01595, allocations: 11.98 kB / 339.7 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.01606, allocations: 131.4 kB / 339.8 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/0.01726, allocations: 364.1 kB / 340.2 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.01744, allocations: 201.5 kB / 340.4 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/0.01749, allocations: 62.38 kB / 340.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.758e-05/0.01758, allocations: 80.38 kB / 340.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.01861, allocations: 0.8975 MB / 341.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.01864, allocations: 16.08 kB / 341.5 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.01869, allocations: 40.12 kB / 341.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.0187, allocations: 20 kB / 341.5 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.01973, allocations: 0.7769 MB / 342.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002745/0.02247, allocations: 2.413 MB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000685/0.02316, allocations: 0.5022 MB / 345.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.02345, allocations: 218.2 kB / 345.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.135e-05/0.02352, allocations: 28.48 kB / 345.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.02354, allocations: 39.06 kB / 345.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=58): time 2.184e-06/0.02355, allocations: 0 / 345.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.003793/0.02734, allocations: 2.167 MB / 347.6 MB, free: 8.328 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.02738, allocations: 81.61 kB / 347.7 MB, free: 8.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002292/0.02761, allocations: 324.2 kB / 348 MB, free: 7.898 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.02764, allocations: 37.7 kB / 348.1 MB, free: 7.855 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.02779, allocations: 375.8 kB / 348.4 MB, free: 7.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.02789, allocations: 214.1 kB / 348.7 MB, free: 7.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.02805, allocations: 150.5 kB / 348.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.127e-05/0.02814, allocations: 350.8 kB / 349.1 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/0.02853, allocations: 265.8 kB / 349.4 MB, free: 6.508 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005033/0.02903, allocations: 0.5222 MB / 349.9 MB, free: 5.871 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000919/0.02995, allocations: 0.8088 MB / 350.7 MB, free: 4.965 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.02996, allocations: 4 kB / 350.7 MB, free: 4.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001119/0.03108, allocations: 0.8971 MB / 351.6 MB, free: 4.051 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.03109, allocations: 8 kB / 351.6 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.0311, allocations: 12 kB / 351.7 MB, free: 4.031 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/0.03126, allocations: 69.7 kB / 351.7 MB, free: 3.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.03167, allocations: 199.7 kB / 351.9 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.03297, allocations: 2.649 MB / 354.6 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.03326, allocations: 64.03 kB / 354.6 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.735e-05/0.0333, allocations: 39.98 kB / 354.7 MB, free: 0.7812 MB / 314.7 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.0002027/0.0335, allocations: 217.5 kB / 354.9 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.03355, allocations: 39.77 kB / 354.9 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.03458, allocations: 0.7218 MB / 355.6 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.03459, allocations: 8 kB / 355.7 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.03459, allocations: 0 / 355.7 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.0346, allocations: 7.984 kB / 355.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.03611, allocations: 1.313 MB / 357 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.03612, allocations: 0 / 357 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.03642, allocations: 127.8 kB / 357.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001029/0.03652, allocations: 57.67 kB / 357.2 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.03655, allocations: 15.98 kB / 357.2 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.03769, allocations: 2.627 MB / 359.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.03769, allocations: 4.062 kB / 359.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.03902, allocations: 1.07 MB / 360.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.03914, allocations: 87.67 kB / 361 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.03918, allocations: 20 kB / 361 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.03939, allocations: 43.95 kB / 361 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.127e-05/0.03947, allocations: 52.39 kB / 361.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.03949, allocations: 19.94 kB / 361.1 MB, free: 10.03 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001332/0.03962, allocations: 211.1 kB / 361.3 MB, free: 9.816 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03962, allocations: 0 / 361.3 MB, free: 9.816 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004485/0.04007, allocations: 175.9 kB / 361.5 MB, free: 9.645 MB / 330.7 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.001644/0.04172, allocations: 1.68 MB / 363.1 MB, free: 7.934 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.04278, allocations: 0.8691 MB / 364 MB, free: 7.047 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.04278, allocations: 0 / 364 MB, free: 7.047 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005003/0.04328, allocations: 0.5195 MB / 364.5 MB, free: 6.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.04362, allocations: 51.77 kB / 364.6 MB, free: 6.449 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004981/0.0486, allocations: 5.034 MB / 369.6 MB, free: 1.125 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.04878, allocations: 282.6 kB / 369.9 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002185/0.049, allocations: 92.44 kB / 370 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.04922, allocations: 224.4 kB / 370.2 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.04922, allocations: 0 / 370.2 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.07582, allocations: 12.33 MB / 382.5 MB, free: 4.379 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.391, allocations: 4.062 kB / 382.5 MB, free: 4.375 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.038469183258712]