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.001975/0.001975, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001519/0.001519, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.446/1.446, allocations: 230.6 MB / 258.3 MB, free: 7.809 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.2285/0.2285, allocations: 44.93 MB / 359.6 MB, free: 6.09 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.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",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.002428/0.002428, allocations: 63.91 kB / 0.4938 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3213, allocations: 65.47 MB / 0.5577 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.00384/0.3251, allocations: 2.347 MB / 0.56 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.3265, allocations: 0.7789 MB / 0.5608 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.3267, allocations: 4 kB / 0.5608 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001984/0.3269, allocations: 59.5 kB / 0.5608 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002954/0.3271, allocations: 101.1 kB / 0.5609 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.3274, allocations: 107.8 kB / 0.561 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.3278, allocations: 358.7 kB / 0.5614 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.3279, allocations: 72.89 kB / 0.5615 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.3282, allocations: 143.5 kB / 0.5616 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.3284, allocations: 155.3 kB / 0.5617 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.263e-05/0.3285, allocations: 35.94 kB / 0.5618 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.198e-05/0.3285, allocations: 35.98 kB / 0.5618 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.81e-05/0.3286, allocations: 75.75 kB / 0.5619 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.3287, allocations: 119.4 kB / 0.562 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004227/0.3292, allocations: 382.4 kB / 0.5624 GB, free: 2.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3292, allocations: 4 kB / 0.5624 GB, free: 2.824 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3292, allocations: 0 / 0.5624 GB, free: 2.824 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.3292, allocations: 0 / 0.5624 GB, free: 2.824 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.001133/0.3303, allocations: 0.5556 MB / 0.5629 GB, free: 2.238 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.3304, allocations: 16.02 kB / 0.5629 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.957e-05/0.3304, allocations: 4.688 kB / 0.5629 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.423e-05/0.3304, allocations: 58.73 kB / 0.563 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.3306, allocations: 48.7 kB / 0.563 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.331, allocations: 213 kB / 0.5632 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.331, allocations: 16.88 kB / 0.5632 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.324e-05/0.331, allocations: 24.38 kB / 0.5633 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000532/0.3316, allocations: 255.9 kB / 0.5635 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3316, allocations: 3.984 kB / 0.5635 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.3316, allocations: 11.94 kB / 0.5635 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3316, allocations: 8 kB / 0.5635 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000533/0.3321, allocations: 237.8 kB / 0.5638 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.3336, allocations: 0.7768 MB / 0.5645 GB, free: 496 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005431/0.3341, allocations: 280.1 kB / 0.5648 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.3344, allocations: 124.8 kB / 0.5649 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.3344, allocations: 4 kB / 0.5649 GB, free: 76 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.3345, allocations: 42.55 kB / 0.5649 GB, free: 24 kB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.3345, allocations: 3.938 kB / 0.565 GB, free: 20 kB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004843/0.3393, allocations: 0.9533 MB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.3393, allocations: 55.41 kB / 0.5659 GB, free: 14.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.3396, allocations: 241.1 kB / 0.5662 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.3396, allocations: 33.64 kB / 0.5662 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3398, allocations: 165.3 kB / 0.5664 GB, free: 14.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.557e-05/0.3399, allocations: 115 kB / 0.5665 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.98e-05/0.34, allocations: 49.7 kB / 0.5665 GB, free: 14.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3401, allocations: 338.8 kB / 0.5668 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.3404, allocations: 91.95 kB / 0.5669 GB, free: 13.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.3406, allocations: 122.8 kB / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004781/0.3411, allocations: 231.3 kB / 0.5673 GB, free: 13.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3411, allocations: 4 kB / 0.5673 GB, free: 13.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001917/0.343, allocations: 0.5412 MB / 0.5678 GB, free: 13.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3431, allocations: 4 kB / 0.5678 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3431, allocations: 0 / 0.5678 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001776/0.3448, allocations: 323 kB / 0.5681 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.345, allocations: 27.97 kB / 0.5681 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008058/0.3531, allocations: 6.4 MB / 0.5744 GB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.3533, allocations: 23.84 kB / 0.5744 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/0.3533, allocations: 7.984 kB / 0.5744 GB, free: 5.762 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.0001991/0.3535, allocations: 153.7 kB / 0.5746 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.3536, allocations: 27.81 kB / 0.5746 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/0.3555, allocations: 0.5502 MB / 0.5751 GB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.3555, allocations: 7.938 kB / 0.5751 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.3556, allocations: 0 / 0.5751 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3556, allocations: 0 / 0.5751 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.356, allocations: 296.5 kB / 0.5754 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.356, allocations: 3.984 kB / 0.5754 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.3561, allocations: 19.98 kB / 0.5754 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001662/0.3578, allocations: 311.3 kB / 0.5757 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.3578, allocations: 4 kB / 0.5757 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007895/0.3657, allocations: 6.429 MB / 0.582 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3657, allocations: 0 / 0.582 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.3676, allocations: 0.6245 MB / 0.5826 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.3676, allocations: 27.75 kB / 0.5827 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.3677, allocations: 11.98 kB / 0.5827 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.3679, allocations: 8 kB / 0.5827 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.368, allocations: 39.92 kB / 0.5827 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.368, allocations: 4 kB / 0.5827 GB, free: 12.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000182/0.3682, allocations: 177.2 kB / 0.5829 GB, free: 12.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3682, allocations: 0 / 0.5829 GB, free: 12.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005123/0.3687, allocations: 119.9 kB / 0.583 GB, free: 12.4 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.002215/0.3709, allocations: 1.16 MB / 0.5841 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.3721, allocations: 0.7406 MB / 0.5849 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3721, allocations: 0 / 0.5849 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.3735, allocations: 0.7216 MB / 0.5856 GB, free: 9.633 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3738, allocations: 24.44 kB / 0.5856 GB, free: 9.605 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006708/0.3805, allocations: 3.18 MB / 0.5887 GB, free: 6.301 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.3807, allocations: 167.7 kB / 0.5888 GB, free: 6.117 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.359e-05/0.3808, allocations: 17.94 kB / 0.5889 GB, free: 6.102 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.3809, allocations: 79.41 kB / 0.5889 GB, free: 6.023 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3809, allocations: 4 kB / 0.5889 GB, free: 6.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04671/0.4276, allocations: 11.48 MB / 0.6002 GB, free: 10.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/14.36, allocations: 11.81 kB / 0.6002 GB, free: 10.72 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.34109933290165]