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.001661/0.001661, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002038/0.002038, allocations: 220.5 kB / 24.53 MB, free: 4.008 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.474/1.474, allocations: 230.5 MB / 258.2 MB, free: 8.016 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.2273/0.2273, allocations: 46.93 MB / 361.6 MB, free: 4.188 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 79.88 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3097, allocations: 66.08 MB / 0.5615 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003821/0.3136, allocations: 2.387 MB / 0.5638 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.3148, allocations: 0.6739 MB / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.758e-05/0.3149, allocations: 7.938 kB / 0.5645 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.489e-05/0.315, allocations: 43.59 kB / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.3152, allocations: 67.33 kB / 0.5646 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.3154, allocations: 95.88 kB / 0.5647 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003504/0.3158, allocations: 339.2 kB / 0.565 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.3161, allocations: 123.6 kB / 0.5651 GB, free: 0.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/0.3163, allocations: 147.5 kB / 0.5653 GB, free: 448 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.3165, allocations: 159.4 kB / 0.5654 GB, free: 288 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.3166, allocations: 32 kB / 0.5655 GB, free: 256 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.166e-05/0.3167, allocations: 40 kB / 0.5655 GB, free: 216 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.044e-05/0.3167, allocations: 67.81 kB / 0.5656 GB, free: 148 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.3169, allocations: 159.3 kB / 0.5657 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004154/0.3173, allocations: 376.2 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3173, allocations: 0 / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3173, allocations: 0 / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.912e-06/0.3173, allocations: 0 / 0.5661 GB, free: 15.62 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.0009183/0.3183, allocations: 0.5133 MB / 0.5666 GB, free: 15.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3183, allocations: 8.031 kB / 0.5666 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.139e-05/0.3183, allocations: 8.844 kB / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.311e-05/0.3184, allocations: 74.72 kB / 0.5667 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.3187, allocations: 48.69 kB / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.3188, allocations: 146.2 kB / 0.5668 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.3189, allocations: 25.03 kB / 0.5669 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.3189, allocations: 32.38 kB / 0.5669 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004934/0.3194, allocations: 289.9 kB / 0.5672 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3194, allocations: 0 / 0.5672 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.3194, allocations: 12 kB / 0.5672 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.3195, allocations: 8 kB / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.3199, allocations: 210.5 kB / 0.5674 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.3217, allocations: 0.9899 MB / 0.5684 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.632e-05/0.3218, allocations: 26.58 kB / 0.5684 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.488e-05/0.3218, allocations: 32.91 kB / 0.5684 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.3218, allocations: 3.984 kB / 0.5684 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.3219, allocations: 38.5 kB / 0.5685 GB, free: 13.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.3219, allocations: 0 / 0.5685 GB, free: 13.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002387/0.3221, allocations: 73.55 kB / 0.5685 GB, free: 12.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.3222, allocations: 55.34 kB / 0.5686 GB, free: 12.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004008/0.3226, allocations: 324.1 kB / 0.5689 GB, free: 12.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.3226, allocations: 29.83 kB / 0.5689 GB, free: 12.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.3228, allocations: 231.5 kB / 0.5691 GB, free: 12.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.3228, allocations: 15.89 kB / 0.5692 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.3229, allocations: 57.64 kB / 0.5692 GB, free: 12.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3231, allocations: 326.8 kB / 0.5695 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.3232, allocations: 63.97 kB / 0.5696 GB, free: 11.83 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.3234, allocations: 93.67 kB / 0.5697 GB, free: 11.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/0.3236, allocations: 125.6 kB / 0.5698 GB, free: 11.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3236, allocations: 0 / 0.5698 GB, free: 11.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004199/0.324, allocations: 234 kB / 0.57 GB, free: 11.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.324, allocations: 7.938 kB / 0.57 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.324, allocations: 0 / 0.57 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3241, allocations: 4 kB / 0.57 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/0.3244, allocations: 59.89 kB / 0.5701 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.3244, allocations: 0 / 0.5701 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.3247, allocations: 39.77 kB / 0.5701 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.3247, allocations: 15.97 kB / 0.5701 GB, free: 11.24 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.0001521/0.3248, allocations: 133.7 kB / 0.5703 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.818e-05/0.3249, allocations: 23.8 kB / 0.5703 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.38e-05/0.3249, allocations: 24.98 kB / 0.5703 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3249, allocations: 0 / 0.5703 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3249, allocations: 0 / 0.5703 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.3249, allocations: 0 / 0.5703 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006744/0.3256, allocations: 0.4905 MB / 0.5708 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3256, allocations: 0 / 0.5708 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.799e-05/0.3257, allocations: 8 kB / 0.5708 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3257, allocations: 0 / 0.5708 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.3257, allocations: 0 / 0.5708 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3257, allocations: 4 kB / 0.5708 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3257, allocations: 0 / 0.5708 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.3258, allocations: 101.8 kB / 0.5709 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.738e-05/0.3259, allocations: 31.84 kB / 0.5709 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.3259, allocations: 0 / 0.5709 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.326, allocations: 0 / 0.5709 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.682e-05/0.326, allocations: 7.984 kB / 0.5709 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.326, allocations: 0 / 0.5709 GB, free: 10.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.3263, allocations: 219.1 kB / 0.5711 GB, free: 10.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3263, allocations: 4.031 kB / 0.5712 GB, free: 10.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002808/0.3266, allocations: 63.89 kB / 0.5712 GB, free: 10.05 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.0004392/0.327, allocations: 0.6365 MB / 0.5718 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.3273, allocations: 107.9 kB / 0.5719 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3273, allocations: 0 / 0.5719 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.99e-05/0.3274, allocations: 12 kB / 0.5719 GB, free: 9.262 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.3277, allocations: 16.98 kB / 0.572 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002908/0.3306, allocations: 2.239 MB / 0.5742 GB, free: 6.902 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.331, allocations: 0.7401 MB / 0.5749 GB, free: 6.137 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.3311, allocations: 25.94 kB / 0.5749 GB, free: 6.113 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.3312, allocations: 71.41 kB / 0.575 GB, free: 6.043 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3312, allocations: 0 / 0.575 GB, free: 6.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.3552, allocations: 4.464 MB / 0.5793 GB, free: 1.703 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.9, allocations: 8.75 kB / 0.5793 GB, free: 1.695 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.902095477969851]