Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.001738/0.001738, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001544/0.001544, allocations: 202.2 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.466/1.466, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2281/0.2281, allocations: 46.94 MB / 360.8 MB, free: 3.918 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002637/0.002637, allocations: 79.81 kB / 0.4961 GB, free: 7.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3571, allocations: 66.1 MB / 0.5607 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.004107/0.3612, allocations: 2.214 MB / 0.5629 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.3624, allocations: 0.6428 MB / 0.5635 GB, free: 1.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.732e-05/0.3625, allocations: 4 kB / 0.5635 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.3626, allocations: 39.58 kB / 0.5635 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.3628, allocations: 71.33 kB / 0.5636 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.3631, allocations: 91.88 kB / 0.5637 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.3635, allocations: 347.2 kB / 0.564 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003412/0.3638, allocations: 111.6 kB / 0.5641 GB, free: 496 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.3641, allocations: 151.5 kB / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.3644, allocations: 127.4 kB / 0.5644 GB, free: 216 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.773e-05/0.3644, allocations: 36 kB / 0.5644 GB, free: 180 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.3645, allocations: 40 kB / 0.5645 GB, free: 140 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.479e-05/0.3646, allocations: 67.77 kB / 0.5645 GB, free: 72 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.3648, allocations: 135.5 kB / 0.5647 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004418/0.3652, allocations: 384.2 kB / 0.565 GB, free: 15.56 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3652, allocations: 0 / 0.565 GB, free: 15.56 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3652, allocations: 4 kB / 0.565 GB, free: 15.56 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.3652, allocations: 0 / 0.565 GB, free: 15.56 MB / 414.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.000913/0.3661, allocations: 0.5094 MB / 0.5655 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3662, allocations: 12.03 kB / 0.5655 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.3663, allocations: 74.72 kB / 0.5656 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002889/0.3666, allocations: 48.69 kB / 0.5657 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.3668, allocations: 138.2 kB / 0.5658 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.3668, allocations: 25.03 kB / 0.5658 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.031e-05/0.3669, allocations: 28.38 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005042/0.3674, allocations: 286.1 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3674, allocations: 0 / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.3674, allocations: 16 kB / 0.5661 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.3675, allocations: 8 kB / 0.5661 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004397/0.3679, allocations: 214.5 kB / 0.5663 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.3696, allocations: 0.9198 MB / 0.5672 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.007e-05/0.3697, allocations: 30.52 kB / 0.5673 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.48e-05/0.3697, allocations: 28.92 kB / 0.5673 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.3697, allocations: 0 / 0.5673 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.3698, allocations: 34.56 kB / 0.5673 GB, free: 13.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.3698, allocations: 0 / 0.5673 GB, free: 13.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002069/0.37, allocations: 77.47 kB / 0.5674 GB, free: 12.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.37, allocations: 51.41 kB / 0.5674 GB, free: 12.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004047/0.3704, allocations: 332 kB / 0.5678 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.3704, allocations: 25.7 kB / 0.5678 GB, free: 12.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.3706, allocations: 239.5 kB / 0.568 GB, free: 12.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.3706, allocations: 16.02 kB / 0.568 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.055e-05/0.3707, allocations: 57.59 kB / 0.5681 GB, free: 12.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.3709, allocations: 334.8 kB / 0.5684 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.3711, allocations: 63.97 kB / 0.5685 GB, free: 11.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.3712, allocations: 93.67 kB / 0.5686 GB, free: 11.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.3715, allocations: 117.7 kB / 0.5687 GB, free: 11.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3715, allocations: 7.938 kB / 0.5687 GB, free: 11.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003869/0.3719, allocations: 230 kB / 0.5689 GB, free: 11.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3719, allocations: 7.938 kB / 0.5689 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3719, allocations: 4.031 kB / 0.5689 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3719, allocations: 4 kB / 0.5689 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002935/0.3722, allocations: 55.89 kB / 0.569 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.3722, allocations: 0 / 0.569 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.3724, allocations: 39.69 kB / 0.569 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.3724, allocations: 12 kB / 0.569 GB, free: 11.26 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001294/0.3726, allocations: 129.8 kB / 0.5691 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.638e-05/0.3726, allocations: 23.83 kB / 0.5692 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.3727, allocations: 21 kB / 0.5692 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3727, allocations: 7.938 kB / 0.5692 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3727, allocations: 3.984 kB / 0.5692 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.3727, allocations: 0 / 0.5692 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006305/0.3733, allocations: 474.4 kB / 0.5696 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.3733, allocations: 7.984 kB / 0.5696 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-05/0.3734, allocations: 4 kB / 0.5697 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.3734, allocations: 4 kB / 0.5697 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.3734, allocations: 0 / 0.5697 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3734, allocations: 0 / 0.5697 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3734, allocations: 0 / 0.5697 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.3735, allocations: 105.8 kB / 0.5698 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.394e-05/0.3736, allocations: 27.88 kB / 0.5698 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.3736, allocations: 4 kB / 0.5698 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.3737, allocations: 0 / 0.5698 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.3737, allocations: 0 / 0.5698 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.3737, allocations: 4 kB / 0.5698 GB, free: 10.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002752/0.374, allocations: 223.1 kB / 0.57 GB, free: 10.15 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.374, allocations: 0 / 0.57 GB, free: 10.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.3743, allocations: 67.84 kB / 0.5701 GB, free: 10.08 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005011/0.3748, allocations: 0.6405 MB / 0.5707 GB, free: 9.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002826/0.3751, allocations: 95.91 kB / 0.5708 GB, free: 9.316 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3751, allocations: 0 / 0.5708 GB, free: 9.316 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.801e-05/0.3751, allocations: 12 kB / 0.5708 GB, free: 9.305 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.3754, allocations: 24.91 kB / 0.5708 GB, free: 9.277 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00306/0.3785, allocations: 2.228 MB / 0.573 GB, free: 6.949 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.3786, allocations: 134.2 kB / 0.5731 GB, free: 6.801 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.3787, allocations: 25.92 kB / 0.5731 GB, free: 6.777 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.3788, allocations: 75.41 kB / 0.5732 GB, free: 6.703 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3788, allocations: 0 / 0.5732 GB, free: 6.703 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.4087, allocations: 4.818 MB / 0.5779 GB, free: 1.996 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.47, allocations: 8 kB / 0.5779 GB, free: 1.988 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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: 14.408482300117612]