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.00135/0.00135, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001655/0.001655, allocations: 212.2 kB / 24.52 MB, free: 4.074 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.529/1.529, allocations: 230.6 MB / 258.3 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.2364/0.2364, allocations: 44.92 MB / 359.6 MB, free: 6.285 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.002252/0.002252, allocations: 55.91 kB / 0.4939 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3349, allocations: 65.47 MB / 0.5578 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004285/0.3392, allocations: 2.512 MB / 0.5602 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.341, allocations: 0.8489 MB / 0.5611 GB, free: 4.422 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.3411, allocations: 4 kB / 0.5611 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.3414, allocations: 63.44 kB / 0.5611 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003491/0.3418, allocations: 105.2 kB / 0.5612 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.3421, allocations: 103.8 kB / 0.5613 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.3426, allocations: 358.8 kB / 0.5617 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.3428, allocations: 68.91 kB / 0.5617 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.3431, allocations: 143.5 kB / 0.5619 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.3434, allocations: 159.3 kB / 0.562 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.3434, allocations: 35.94 kB / 0.5621 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.022e-05/0.3435, allocations: 32 kB / 0.5621 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.268e-05/0.3436, allocations: 71.73 kB / 0.5622 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.3437, allocations: 151.2 kB / 0.5623 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004758/0.3442, allocations: 378.4 kB / 0.5627 GB, free: 2.777 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3442, allocations: 4 kB / 0.5627 GB, free: 2.773 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3442, allocations: 4 kB / 0.5627 GB, free: 2.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3442, allocations: 0 / 0.5627 GB, free: 2.77 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.001252/0.3455, allocations: 0.5634 MB / 0.5632 GB, free: 2.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.885e-05/0.3455, allocations: 8.031 kB / 0.5632 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.121e-05/0.3456, allocations: 12.69 kB / 0.5632 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.891e-05/0.3456, allocations: 54.73 kB / 0.5633 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.3458, allocations: 40.7 kB / 0.5633 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.3463, allocations: 213 kB / 0.5635 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.3463, allocations: 16.88 kB / 0.5636 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.3463, allocations: 32.3 kB / 0.5636 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005769/0.3469, allocations: 251.9 kB / 0.5638 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3469, allocations: 4 kB / 0.5638 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.347, allocations: 8 kB / 0.5638 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.347, allocations: 8 kB / 0.5638 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005511/0.3475, allocations: 233.9 kB / 0.5641 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3492, allocations: 0.8353 MB / 0.5649 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006164/0.3498, allocations: 278.7 kB / 0.5651 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.3501, allocations: 132.9 kB / 0.5653 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.3501, allocations: 3.984 kB / 0.5653 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.3502, allocations: 38.55 kB / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.973e-06/0.3502, allocations: 0 / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004698/0.3549, allocations: 0.9611 MB / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.3549, allocations: 55.41 kB / 0.5663 GB, free: 14.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.3552, allocations: 233.1 kB / 0.5665 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.3553, allocations: 33.64 kB / 0.5666 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.3554, allocations: 169.3 kB / 0.5667 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.3555, allocations: 115 kB / 0.5668 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.3556, allocations: 49.7 kB / 0.5669 GB, free: 14.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3558, allocations: 342.8 kB / 0.5672 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.356, allocations: 91.95 kB / 0.5673 GB, free: 13.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.3563, allocations: 118.8 kB / 0.5674 GB, free: 13.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004714/0.3568, allocations: 235.2 kB / 0.5676 GB, free: 13.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.3568, allocations: 0 / 0.5676 GB, free: 13.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001836/0.3586, allocations: 0.5412 MB / 0.5682 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.3586, allocations: 7.938 kB / 0.5682 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3586, allocations: 4 kB / 0.5682 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.3603, allocations: 311.1 kB / 0.5685 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.3605, allocations: 27.91 kB / 0.5685 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008536/0.369, allocations: 6.458 MB / 0.5748 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.3694, allocations: 27.86 kB / 0.5748 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.3694, allocations: 8 kB / 0.5748 GB, free: 5.59 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.0002337/0.3696, allocations: 149.7 kB / 0.575 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.3697, allocations: 27.81 kB / 0.575 GB, free: 5.406 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.3716, allocations: 0.5502 MB / 0.5755 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.3716, allocations: 7.938 kB / 0.5756 GB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-06/0.3716, allocations: 4 kB / 0.5756 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3716, allocations: 3.984 kB / 0.5756 GB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005196/0.3721, allocations: 328.4 kB / 0.5759 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3721, allocations: 0 / 0.5759 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3723, allocations: 23.98 kB / 0.5759 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001538/0.3738, allocations: 311.1 kB / 0.5762 GB, free: 4.121 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.3738, allocations: 7.984 kB / 0.5762 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009034/0.3829, allocations: 6.484 MB / 0.5825 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3829, allocations: 0 / 0.5825 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.3848, allocations: 0.6284 MB / 0.5831 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.3849, allocations: 31.75 kB / 0.5832 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.3849, allocations: 7.984 kB / 0.5832 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.3851, allocations: 8 kB / 0.5832 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.3853, allocations: 39.86 kB / 0.5832 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.3853, allocations: 8 kB / 0.5832 GB, free: 12.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.3855, allocations: 169.2 kB / 0.5834 GB, free: 12.25 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3855, allocations: 3.938 kB / 0.5834 GB, free: 12.25 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000567/0.386, allocations: 123.9 kB / 0.5835 GB, free: 12.12 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.002211/0.3883, allocations: 1.16 MB / 0.5847 GB, free: 10.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.3895, allocations: 0.7367 MB / 0.5854 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3895, allocations: 0 / 0.5854 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.391, allocations: 0.7177 MB / 0.5861 GB, free: 9.367 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.3914, allocations: 20.5 kB / 0.5861 GB, free: 9.344 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007019/0.3984, allocations: 3.185 MB / 0.5892 GB, free: 6.035 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.3989, allocations: 0.7717 MB / 0.59 GB, free: 5.234 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.792e-05/0.399, allocations: 13.95 kB / 0.59 GB, free: 5.223 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.3992, allocations: 87.34 kB / 0.5901 GB, free: 5.137 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3992, allocations: 0 / 0.5901 GB, free: 5.137 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05323/0.4524, allocations: 11.4 MB / 0.6012 GB, free: 9.922 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/13.98, allocations: 6.516 kB / 0.6012 GB, free: 9.918 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: 17.144833913014736]