Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.001699/0.001699, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002007/0.002007, allocations: 211.7 kB / 23.73 MB, free: 4.387 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.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2317/0.2317, allocations: 44.93 MB / 358.9 MB, free: 6.043 MB / 286.1 MB " [Timeout remaining time 179] 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.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",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.002057/0.002057, allocations: 69.62 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3824, allocations: 65.47 MB / 0.557 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004272/0.3866, allocations: 2.349 MB / 0.5593 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.3884, allocations: 0.7867 MB / 0.56 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.3886, allocations: 7.938 kB / 0.56 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.3888, allocations: 51.52 kB / 0.5601 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.3891, allocations: 117 kB / 0.5602 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.3895, allocations: 107.8 kB / 0.5603 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004223/0.3899, allocations: 353.7 kB / 0.5606 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.3901, allocations: 68.89 kB / 0.5607 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.3904, allocations: 151.4 kB / 0.5608 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.3906, allocations: 143.3 kB / 0.561 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.072e-05/0.3907, allocations: 28 kB / 0.561 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.797e-05/0.3908, allocations: 32 kB / 0.561 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.311e-05/0.3908, allocations: 67.77 kB / 0.5611 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.391, allocations: 135.4 kB / 0.5612 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.3914, allocations: 378.4 kB / 0.5616 GB, free: 2.777 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.515e-05/0.3915, allocations: 0 / 0.5616 GB, free: 2.777 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3915, allocations: 0 / 0.5616 GB, free: 2.777 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.3915, allocations: 0 / 0.5616 GB, free: 2.777 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001138/0.3926, allocations: 0.5634 MB / 0.5621 GB, free: 2.184 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.3927, allocations: 12.03 kB / 0.5622 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.589e-05/0.3927, allocations: 66.66 kB / 0.5622 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.3929, allocations: 44.7 kB / 0.5623 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.3933, allocations: 209 kB / 0.5625 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.3934, allocations: 20.88 kB / 0.5625 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-05/0.3934, allocations: 24.38 kB / 0.5625 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005665/0.394, allocations: 244.2 kB / 0.5627 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.394, allocations: 3.984 kB / 0.5627 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.855e-05/0.394, allocations: 12 kB / 0.5627 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.394, allocations: 8 kB / 0.5628 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006448/0.3947, allocations: 233.9 kB / 0.563 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.3963, allocations: 0.7729 MB / 0.5637 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005665/0.3968, allocations: 280.1 kB / 0.564 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.3971, allocations: 128.8 kB / 0.5641 GB, free: 44 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.3972, allocations: 8 kB / 0.5641 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.5e-05/0.3972, allocations: 38.59 kB / 0.5642 GB, free: 15.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.964e-06/0.3972, allocations: 0 / 0.5642 GB, free: 15.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004444/0.4017, allocations: 0.961 MB / 0.5651 GB, free: 15.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.4017, allocations: 51.41 kB / 0.5652 GB, free: 14.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.4021, allocations: 237.1 kB / 0.5654 GB, free: 14.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.4021, allocations: 29.7 kB / 0.5654 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.4022, allocations: 169.3 kB / 0.5656 GB, free: 14.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.4024, allocations: 115 kB / 0.5657 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-05/0.4025, allocations: 49.7 kB / 0.5657 GB, free: 14.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.4026, allocations: 334.8 kB / 0.566 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.4029, allocations: 95.89 kB / 0.5661 GB, free: 13.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002578/0.4031, allocations: 122.8 kB / 0.5663 GB, free: 13.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005073/0.4036, allocations: 239.2 kB / 0.5665 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4036, allocations: 0 / 0.5665 GB, free: 13.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001769/0.4054, allocations: 0.5411 MB / 0.567 GB, free: 12.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.4054, allocations: 8 kB / 0.567 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.4054, allocations: 4 kB / 0.567 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001638/0.4071, allocations: 311.1 kB / 0.5673 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.4073, allocations: 31.91 kB / 0.5674 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008073/0.4153, allocations: 6.389 MB / 0.5736 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.4156, allocations: 23.88 kB / 0.5736 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.4156, allocations: 8 kB / 0.5736 GB, free: 5.73 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001928/0.4158, allocations: 141.8 kB / 0.5738 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.933e-05/0.4158, allocations: 31.81 kB / 0.5738 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.4176, allocations: 0.5501 MB / 0.5743 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.4176, allocations: 4 kB / 0.5743 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.4176, allocations: 3.938 kB / 0.5743 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.4176, allocations: 3.984 kB / 0.5743 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004404/0.4181, allocations: 292.5 kB / 0.5746 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.4181, allocations: 0 / 0.5746 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.4182, allocations: 19.92 kB / 0.5746 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.4197, allocations: 319.3 kB / 0.5749 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.4197, allocations: 4 kB / 0.5749 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008084/0.4278, allocations: 6.441 MB / 0.5812 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4278, allocations: 0 / 0.5812 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.4296, allocations: 0.6051 MB / 0.5818 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-05/0.4297, allocations: 39.69 kB / 0.5819 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.4297, allocations: 7.938 kB / 0.5819 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.4299, allocations: 15.92 kB / 0.5819 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.43, allocations: 35.88 kB / 0.5819 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.4301, allocations: 8 kB / 0.5819 GB, free: 12.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.4303, allocations: 169.2 kB / 0.5821 GB, free: 12.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4303, allocations: 4 kB / 0.5821 GB, free: 12.48 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005416/0.4308, allocations: 123.9 kB / 0.5822 GB, free: 12.36 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002105/0.4329, allocations: 1.161 MB / 0.5833 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.4341, allocations: 0.7406 MB / 0.5841 GB, free: 10.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4341, allocations: 0 / 0.5841 GB, free: 10.37 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.4355, allocations: 0.7094 MB / 0.5848 GB, free: 9.609 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.4358, allocations: 32.41 kB / 0.5848 GB, free: 9.578 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006494/0.4423, allocations: 3.183 MB / 0.5879 GB, free: 6.277 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.4425, allocations: 175.7 kB / 0.5881 GB, free: 6.086 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.522e-05/0.4426, allocations: 5.969 kB / 0.5881 GB, free: 6.082 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.4427, allocations: 83.41 kB / 0.5881 GB, free: 6 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4427, allocations: 3.938 kB / 0.5882 GB, free: 5.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05603/0.4987, allocations: 11.82 MB / 0.5997 GB, free: 10.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.82, allocations: 3.984 kB / 0.5997 GB, free: 10.36 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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: 16.864645930938423]