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.001912/0.001912, allocations: 113.1 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.001544/0.001544, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 8 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.2282/0.2282, allocations: 44.91 MB / 358.8 MB, free: 6.262 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="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.002091/0.002091, allocations: 59.91 kB / 0.4931 GB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3238, allocations: 65.48 MB / 0.557 GB, free: 7.504 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004038/0.3279, allocations: 2.517 MB / 0.5595 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3293, allocations: 0.8451 MB / 0.5603 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.3294, allocations: 4 kB / 0.5603 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.3296, allocations: 55.45 kB / 0.5604 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.3298, allocations: 109.1 kB / 0.5605 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.3301, allocations: 103.8 kB / 0.5606 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.3305, allocations: 358.7 kB / 0.5609 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.3307, allocations: 72.89 kB / 0.561 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.3309, allocations: 143.5 kB / 0.5611 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.3312, allocations: 159.3 kB / 0.5613 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.901e-05/0.3312, allocations: 31.94 kB / 0.5613 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.895e-05/0.3313, allocations: 35.98 kB / 0.5613 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.465e-05/0.3314, allocations: 71.75 kB / 0.5614 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.3315, allocations: 147.2 kB / 0.5615 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004289/0.3319, allocations: 382.4 kB / 0.5619 GB, free: 2.703 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3319, allocations: 4 kB / 0.5619 GB, free: 2.699 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3319, allocations: 0 / 0.5619 GB, free: 2.699 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3319, allocations: 0 / 0.5619 GB, free: 2.699 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.001134/0.3331, allocations: 0.5595 MB / 0.5625 GB, free: 2.109 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3331, allocations: 15.97 kB / 0.5625 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.874e-05/0.3332, allocations: 62.73 kB / 0.5625 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.3333, allocations: 44.69 kB / 0.5626 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.3337, allocations: 201.1 kB / 0.5628 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.3337, allocations: 28.86 kB / 0.5628 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.3337, allocations: 24.38 kB / 0.5628 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005217/0.3343, allocations: 252.1 kB / 0.5631 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3343, allocations: 3.938 kB / 0.5631 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.3343, allocations: 12 kB / 0.5631 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3343, allocations: 4 kB / 0.5631 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005486/0.3349, allocations: 229.9 kB / 0.5633 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.3363, allocations: 0.8431 MB / 0.5641 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.3369, allocations: 276.4 kB / 0.5644 GB, free: 32 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003016/0.3372, allocations: 120.9 kB / 0.5645 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.185e-05/0.3372, allocations: 11.92 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.3373, allocations: 42.55 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.543e-06/0.3373, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004732/0.342, allocations: 0.9571 MB / 0.5655 GB, free: 14.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.3421, allocations: 55.41 kB / 0.5655 GB, free: 14.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002618/0.3423, allocations: 233.1 kB / 0.5658 GB, free: 14.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.3424, allocations: 33.7 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.3425, allocations: 165.3 kB / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.358e-05/0.3426, allocations: 119 kB / 0.5661 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3427, allocations: 49.7 kB / 0.5661 GB, free: 14.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3429, allocations: 338.8 kB / 0.5664 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.3431, allocations: 95.95 kB / 0.5665 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.3434, allocations: 118.8 kB / 0.5666 GB, free: 13.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004859/0.3438, allocations: 235.2 kB / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3438, allocations: 0 / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001908/0.3458, allocations: 0.545 MB / 0.5674 GB, free: 12.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3458, allocations: 4 kB / 0.5674 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.3458, allocations: 3.938 kB / 0.5674 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00177/0.3475, allocations: 315.1 kB / 0.5677 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.3477, allocations: 27.97 kB / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007925/0.3556, allocations: 6.447 MB / 0.574 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.3559, allocations: 27.86 kB / 0.574 GB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.3559, allocations: 8 kB / 0.5741 GB, free: 5.531 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.0001849/0.3561, allocations: 149.7 kB / 0.5742 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.816e-05/0.3561, allocations: 27.81 kB / 0.5742 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.3581, allocations: 0.5502 MB / 0.5748 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3581, allocations: 4 kB / 0.5748 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3581, allocations: 3.938 kB / 0.5748 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3581, allocations: 7.984 kB / 0.5748 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004563/0.3585, allocations: 328.4 kB / 0.5751 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3585, allocations: 3.938 kB / 0.5751 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.3587, allocations: 19.98 kB / 0.5751 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.3602, allocations: 315.2 kB / 0.5754 GB, free: 4.059 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.3603, allocations: 7.984 kB / 0.5754 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00799/0.3683, allocations: 6.491 MB / 0.5818 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3683, allocations: 0 / 0.5818 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.3701, allocations: 0.6167 MB / 0.5824 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.3702, allocations: 39.67 kB / 0.5824 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.3702, allocations: 8 kB / 0.5824 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.3705, allocations: 8 kB / 0.5824 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3706, allocations: 35.92 kB / 0.5825 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.3706, allocations: 8 kB / 0.5825 GB, free: 12.35 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.3708, allocations: 169.2 kB / 0.5826 GB, free: 12.19 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3708, allocations: 0 / 0.5826 GB, free: 12.19 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005208/0.3713, allocations: 127.8 kB / 0.5827 GB, free: 12.06 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.002222/0.3735, allocations: 1.156 MB / 0.5839 GB, free: 10.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.3747, allocations: 0.7407 MB / 0.5846 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3747, allocations: 0 / 0.5846 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.3761, allocations: 0.7177 MB / 0.5853 GB, free: 9.305 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.3764, allocations: 24.5 kB / 0.5853 GB, free: 9.281 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006585/0.383, allocations: 3.179 MB / 0.5884 GB, free: 5.977 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.3834, allocations: 0.7794 MB / 0.5892 GB, free: 5.168 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.452e-05/0.3835, allocations: 13.94 kB / 0.5892 GB, free: 5.156 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3836, allocations: 79.41 kB / 0.5893 GB, free: 5.078 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3836, allocations: 0 / 0.5893 GB, free: 5.078 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05284/0.4365, allocations: 11.37 MB / 0.6004 GB, free: 9.879 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.83, allocations: 3.562 kB / 0.6004 GB, free: 9.879 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.720283990958706]