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.00173/0.00173, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001992/0.001992, allocations: 210.7 kB / 23.74 MB, free: 4.672 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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2283/0.2283, allocations: 44.92 MB / 358.8 MB, free: 6.266 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",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.002615/0.002615, allocations: 63.91 kB / 0.4931 GB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3194, allocations: 65.47 MB / 0.557 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004367/0.3237, allocations: 2.72 MB / 0.5597 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.3252, allocations: 0.7983 MB / 0.5605 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.3254, allocations: 8 kB / 0.5605 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.3256, allocations: 75.33 kB / 0.5605 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.3259, allocations: 107.2 kB / 0.5606 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.3262, allocations: 111.8 kB / 0.5607 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004975/0.3267, allocations: 426.2 kB / 0.5611 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.3269, allocations: 103.8 kB / 0.5612 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.3271, allocations: 151.5 kB / 0.5614 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.3273, allocations: 167.2 kB / 0.5616 GB, free: 3.094 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/0.3273, allocations: 32 kB / 0.5616 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.246e-05/0.3274, allocations: 32 kB / 0.5616 GB, free: 3.031 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.322e-05/0.3275, allocations: 83.69 kB / 0.5617 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.3277, allocations: 183 kB / 0.5619 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000474/0.3281, allocations: 428.1 kB / 0.5623 GB, free: 2.352 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3281, allocations: 0 / 0.5623 GB, free: 2.352 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3281, allocations: 0 / 0.5623 GB, free: 2.352 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3281, allocations: 0 / 0.5623 GB, free: 2.352 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.001122/0.3293, allocations: 0.6066 MB / 0.5629 GB, free: 1.715 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3293, allocations: 8.031 kB / 0.5629 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.62e-05/0.3294, allocations: 74.72 kB / 0.5629 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.565e-05/0.3295, allocations: 48.64 kB / 0.563 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.3299, allocations: 228.8 kB / 0.5632 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.3299, allocations: 29.38 kB / 0.5632 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.33, allocations: 28.38 kB / 0.5633 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006747/0.3306, allocations: 358 kB / 0.5636 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3307, allocations: 4 kB / 0.5636 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.3307, allocations: 16 kB / 0.5636 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.3307, allocations: 8 kB / 0.5636 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006677/0.3314, allocations: 267.8 kB / 0.5639 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002137/0.3335, allocations: 1.296 MB / 0.5652 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005018/0.334, allocations: 194.5 kB / 0.5653 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.3342, allocations: 79.52 kB / 0.5654 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.3343, allocations: 0 / 0.5654 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3343, allocations: 38.56 kB / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.3343, allocations: 0 / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007983/0.3351, allocations: 257.3 kB / 0.5657 GB, free: 14.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9e-05/0.3352, allocations: 132.5 kB / 0.5658 GB, free: 14.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004219/0.3356, allocations: 337.7 kB / 0.5661 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.3356, allocations: 29.7 kB / 0.5662 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.3358, allocations: 248.1 kB / 0.5664 GB, free: 13.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.382e-05/0.3359, allocations: 59.52 kB / 0.5665 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.784e-05/0.336, allocations: 65.91 kB / 0.5665 GB, free: 13.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3361, allocations: 342.8 kB / 0.5669 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.3364, allocations: 76.5 kB / 0.5669 GB, free: 13.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000311/0.3367, allocations: 172.2 kB / 0.5671 GB, free: 13.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005152/0.3372, allocations: 250.9 kB / 0.5673 GB, free: 12.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.3372, allocations: 0 / 0.5673 GB, free: 12.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006941/0.3379, allocations: 305.6 kB / 0.5676 GB, free: 12.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.3379, allocations: 8.25 kB / 0.5676 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.3379, allocations: 4 kB / 0.5676 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.952e-05/0.338, allocations: 8 kB / 0.5676 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004212/0.3384, allocations: 95.8 kB / 0.5677 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3384, allocations: 7.938 kB / 0.5677 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.3387, allocations: 51.7 kB / 0.5678 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.3387, allocations: 12 kB / 0.5678 GB, free: 12.29 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.0001744/0.3389, allocations: 157.7 kB / 0.568 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.339, allocations: 31.81 kB / 0.568 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.153e-05/0.3391, allocations: 30.5 kB / 0.568 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3391, allocations: 4.281 kB / 0.568 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3391, allocations: 0 / 0.568 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.3391, allocations: 3.984 kB / 0.568 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008893/0.34, allocations: 0.5672 MB / 0.5686 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.34, allocations: 4 kB / 0.5686 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.3403, allocations: 59.88 kB / 0.5686 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.3403, allocations: 4 kB / 0.5686 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.3403, allocations: 7.938 kB / 0.5686 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.3403, allocations: 0 / 0.5686 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3403, allocations: 8.156 kB / 0.5687 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005684/0.3409, allocations: 401.6 kB / 0.569 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.556e-05/0.3409, allocations: 31.81 kB / 0.5691 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.341, allocations: 3.938 kB / 0.5691 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.3413, allocations: 23.97 kB / 0.5691 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.631e-05/0.3413, allocations: 11.98 kB / 0.5691 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.3413, allocations: 8 kB / 0.5691 GB, free: 10.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.3416, allocations: 239.2 kB / 0.5693 GB, free: 10.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3416, allocations: 0 / 0.5693 GB, free: 10.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004221/0.342, allocations: 75.83 kB / 0.5694 GB, free: 10.54 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.0009563/0.343, allocations: 0.9304 MB / 0.5703 GB, free: 9.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005947/0.3436, allocations: 195.6 kB / 0.5705 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3436, allocations: 3.938 kB / 0.5705 GB, free: 9.363 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.3438, allocations: 72.7 kB / 0.5706 GB, free: 9.293 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/0.3443, allocations: 29.8 kB / 0.5706 GB, free: 9.266 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004719/0.349, allocations: 3 MB / 0.5735 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.3494, allocations: 0.7753 MB / 0.5743 GB, free: 5.285 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.3496, allocations: 18.14 kB / 0.5743 GB, free: 5.266 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.3497, allocations: 107.4 kB / 0.5744 GB, free: 5.16 MB / 414.1 MB Notification: Performance of SimCode: time 1.713e-06/0.3497, allocations: 4 kB / 0.5744 GB, free: 5.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03442/0.3842, allocations: 5.264 MB / 0.5796 GB, free: 28 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.86, allocations: 9.141 kB / 0.5796 GB, free: 24 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: 14.763589845970273]