Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.001328/0.001328, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00147/0.00147, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.523/1.523, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2254/0.2254, allocations: 44.92 MB / 359.6 MB, free: 6.301 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 63.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3118, allocations: 65.47 MB / 0.5578 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.00456/0.3163, allocations: 2.72 MB / 0.5604 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.3178, allocations: 0.7866 MB / 0.5612 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.318, allocations: 8 kB / 0.5612 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.3182, allocations: 79.31 kB / 0.5613 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.3184, allocations: 111.2 kB / 0.5614 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.3187, allocations: 103.9 kB / 0.5615 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004478/0.3192, allocations: 434.2 kB / 0.5619 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.3194, allocations: 103.8 kB / 0.562 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.3196, allocations: 143.5 kB / 0.5621 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.3198, allocations: 171.2 kB / 0.5623 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.218e-05/0.3198, allocations: 32 kB / 0.5623 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.181e-05/0.3199, allocations: 32 kB / 0.5624 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.648e-05/0.32, allocations: 83.69 kB / 0.5625 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.3202, allocations: 187 kB / 0.5626 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004529/0.3206, allocations: 424.1 kB / 0.563 GB, free: 2.371 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3206, allocations: 0 / 0.563 GB, free: 2.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3206, allocations: 0 / 0.563 GB, free: 2.371 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3206, allocations: 8 kB / 0.563 GB, free: 2.363 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001098/0.3217, allocations: 0.6027 MB / 0.5636 GB, free: 1.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3218, allocations: 8.031 kB / 0.5636 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.378e-05/0.3218, allocations: 13.19 kB / 0.5637 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.701e-05/0.3219, allocations: 74.66 kB / 0.5637 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.051e-05/0.3219, allocations: 40.7 kB / 0.5638 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.3223, allocations: 224.8 kB / 0.564 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.3223, allocations: 33.31 kB / 0.564 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.411e-05/0.3224, allocations: 32.38 kB / 0.564 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006902/0.3231, allocations: 357.9 kB / 0.5644 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3231, allocations: 0 / 0.5644 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.3231, allocations: 12 kB / 0.5644 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.3231, allocations: 8 kB / 0.5644 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006726/0.3238, allocations: 270 kB / 0.5647 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.3259, allocations: 1.304 MB / 0.5659 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.3265, allocations: 190.5 kB / 0.5661 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.3267, allocations: 79.56 kB / 0.5662 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.3267, allocations: 4 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.3267, allocations: 38.55 kB / 0.5662 GB, free: 14.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.3267, allocations: 0 / 0.5662 GB, free: 14.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008398/0.3276, allocations: 253.2 kB / 0.5665 GB, free: 14.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.107e-05/0.3277, allocations: 136.5 kB / 0.5666 GB, free: 14.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.3281, allocations: 341.6 kB / 0.5669 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.3281, allocations: 29.83 kB / 0.567 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.3283, allocations: 252.1 kB / 0.5672 GB, free: 13.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.795e-05/0.3283, allocations: 55.53 kB / 0.5672 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.3284, allocations: 57.94 kB / 0.5673 GB, free: 13.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3286, allocations: 342.8 kB / 0.5676 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.3288, allocations: 76.5 kB / 0.5677 GB, free: 13.28 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.3291, allocations: 172.2 kB / 0.5679 GB, free: 13.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005674/0.3297, allocations: 254.9 kB / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3297, allocations: 0 / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007116/0.3304, allocations: 317.5 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3304, allocations: 4 kB / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3305, allocations: 4 kB / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3305, allocations: 4 kB / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/0.3309, allocations: 95.81 kB / 0.5685 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.3309, allocations: 8.547 kB / 0.5685 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.3312, allocations: 51.72 kB / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.3312, allocations: 8 kB / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0001649/0.3314, allocations: 153.7 kB / 0.5687 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3315, allocations: 31.81 kB / 0.5688 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.207e-05/0.3316, allocations: 38.48 kB / 0.5688 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3316, allocations: 4 kB / 0.5688 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3316, allocations: 4 kB / 0.5688 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3316, allocations: 0 / 0.5688 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008577/0.3324, allocations: 0.5633 MB / 0.5694 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3324, allocations: 4 kB / 0.5694 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.3327, allocations: 55.88 kB / 0.5694 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.3327, allocations: 8.094 kB / 0.5694 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.3328, allocations: 4 kB / 0.5694 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.3328, allocations: 4 kB / 0.5694 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3328, allocations: 4 kB / 0.5694 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006342/0.3334, allocations: 402.7 kB / 0.5698 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.388e-05/0.3335, allocations: 31.8 kB / 0.5698 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.118e-05/0.3335, allocations: 7.938 kB / 0.5698 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.3337, allocations: 11.98 kB / 0.5699 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.504e-05/0.3338, allocations: 23.97 kB / 0.5699 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.3338, allocations: 4 kB / 0.5699 GB, free: 10.85 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002665/0.3341, allocations: 239.2 kB / 0.5701 GB, free: 10.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3341, allocations: 0 / 0.5701 GB, free: 10.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004053/0.3345, allocations: 71.83 kB / 0.5702 GB, free: 10.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * 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.001053/0.3355, allocations: 0.9446 MB / 0.5711 GB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.3361, allocations: 191.6 kB / 0.5713 GB, free: 9.371 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3361, allocations: 0.5 kB / 0.5713 GB, free: 9.371 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.3363, allocations: 83.88 kB / 0.5714 GB, free: 9.289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.3368, allocations: 24.09 kB / 0.5714 GB, free: 9.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.3412, allocations: 2.997 MB / 0.5743 GB, free: 6.094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.3416, allocations: 0.7792 MB / 0.5751 GB, free: 5.289 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.3417, allocations: 26.11 kB / 0.5751 GB, free: 5.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.3419, allocations: 99.41 kB / 0.5752 GB, free: 5.164 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3419, allocations: 0 / 0.5752 GB, free: 5.164 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.3682, allocations: 5.3 MB / 0.5804 GB, free: 12 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.05, allocations: 8 kB / 0.5804 GB, free: 4 kB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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: 15.109818713972345]