Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001641/0.001641, allocations: 112.2 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.002072/0.002072, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.573/1.573, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2331/0.2331, allocations: 46.95 MB / 361.7 MB, free: 4.262 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00267/0.00267, allocations: 67.89 kB / 0.4969 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3488, allocations: 66.03 MB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004135/0.3529, allocations: 2.513 MB / 0.5639 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.3545, allocations: 0.845 MB / 0.5647 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.3546, allocations: 8 kB / 0.5647 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.3548, allocations: 55.52 kB / 0.5648 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.3551, allocations: 109.1 kB / 0.5649 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.3554, allocations: 111.8 kB / 0.565 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003914/0.3558, allocations: 354.7 kB / 0.5653 GB, free: 492 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.356, allocations: 76.89 kB / 0.5654 GB, free: 412 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.3562, allocations: 139.5 kB / 0.5655 GB, free: 272 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.3564, allocations: 159.3 kB / 0.5657 GB, free: 112 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.865e-05/0.3565, allocations: 31.94 kB / 0.5657 GB, free: 80 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.824e-05/0.3566, allocations: 32 kB / 0.5657 GB, free: 48 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.923e-05/0.3567, allocations: 75.73 kB / 0.5658 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.3568, allocations: 151.2 kB / 0.5659 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004501/0.3573, allocations: 382.4 kB / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3573, allocations: 0 / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3573, allocations: 0 / 0.5663 GB, free: 15.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.3573, allocations: 4 kB / 0.5663 GB, free: 15.45 MB / 414.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.001107/0.3584, allocations: 0.5596 MB / 0.5669 GB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.3584, allocations: 8.031 kB / 0.5669 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.875e-05/0.3584, allocations: 8.688 kB / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.497e-05/0.3585, allocations: 62.67 kB / 0.5669 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.3587, allocations: 40.69 kB / 0.567 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.3591, allocations: 209 kB / 0.5672 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.3591, allocations: 24.88 kB / 0.5672 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.3591, allocations: 24.38 kB / 0.5672 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.3597, allocations: 247.9 kB / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.3597, allocations: 0 / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.3597, allocations: 15.94 kB / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.3597, allocations: 4 kB / 0.5675 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005453/0.3603, allocations: 229.9 kB / 0.5677 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.3618, allocations: 0.8431 MB / 0.5685 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006141/0.3624, allocations: 274.7 kB / 0.5688 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/0.3627, allocations: 124.8 kB / 0.5689 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.278e-05/0.3628, allocations: 8 kB / 0.5689 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.3628, allocations: 42.48 kB / 0.5689 GB, free: 12.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.673e-06/0.3628, allocations: 0 / 0.5689 GB, free: 12.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.00467/0.3675, allocations: 0.9572 MB / 0.5699 GB, free: 11.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/0.3676, allocations: 67.27 kB / 0.5699 GB, free: 11.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.3678, allocations: 229.1 kB / 0.5702 GB, free: 11.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.3679, allocations: 33.7 kB / 0.5702 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.368, allocations: 161.3 kB / 0.5703 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.323e-05/0.3681, allocations: 123 kB / 0.5705 GB, free: 10.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3682, allocations: 49.7 kB / 0.5705 GB, free: 10.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3684, allocations: 334.8 kB / 0.5708 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.3686, allocations: 91.95 kB / 0.5709 GB, free: 10.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00026/0.3689, allocations: 126.8 kB / 0.571 GB, free: 10.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004814/0.3694, allocations: 227.4 kB / 0.5713 GB, free: 10.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3694, allocations: 0 / 0.5713 GB, free: 10.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001849/0.3712, allocations: 0.545 MB / 0.5718 GB, free: 9.586 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.3712, allocations: 7.938 kB / 0.5718 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3712, allocations: 3.938 kB / 0.5718 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00168/0.3729, allocations: 311.1 kB / 0.5721 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.3731, allocations: 23.98 kB / 0.5721 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00813/0.3812, allocations: 6.445 MB / 0.5784 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.3815, allocations: 32.05 kB / 0.5784 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.3815, allocations: 8 kB / 0.5784 GB, free: 2.289 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.000223/0.3817, allocations: 157.6 kB / 0.5786 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.3818, allocations: 27.81 kB / 0.5786 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.3837, allocations: 0.5463 MB / 0.5792 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.3837, allocations: 7.938 kB / 0.5792 GB, free: 1.527 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.3837, allocations: 0 / 0.5792 GB, free: 1.527 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.3837, allocations: 7.984 kB / 0.5792 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.3841, allocations: 328.4 kB / 0.5795 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3842, allocations: 0 / 0.5795 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.3843, allocations: 15.98 kB / 0.5795 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.3858, allocations: 315.1 kB / 0.5798 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.3858, allocations: 4 kB / 0.5798 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008222/0.3941, allocations: 6.495 MB / 0.5861 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3941, allocations: 320 / 0.5861 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.396, allocations: 0.6206 MB / 0.5868 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.3961, allocations: 31.73 kB / 0.5868 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.3961, allocations: 16 kB / 0.5868 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.3963, allocations: 11.98 kB / 0.5868 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.3965, allocations: 31.94 kB / 0.5868 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.3965, allocations: 8 kB / 0.5869 GB, free: 9.109 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001874/0.3967, allocations: 169.2 kB / 0.587 GB, free: 8.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3967, allocations: 3.938 kB / 0.587 GB, free: 8.941 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005633/0.3973, allocations: 123.9 kB / 0.5871 GB, free: 8.82 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.002169/0.3994, allocations: 1.156 MB / 0.5883 GB, free: 7.625 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.4009, allocations: 0.7406 MB / 0.589 GB, free: 6.832 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4009, allocations: 0 / 0.589 GB, free: 6.832 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.4023, allocations: 0.7177 MB / 0.5897 GB, free: 6.062 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.4026, allocations: 34.97 kB / 0.5897 GB, free: 6.027 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006688/0.4093, allocations: 3.177 MB / 0.5928 GB, free: 2.727 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/0.4098, allocations: 0.7755 MB / 0.5936 GB, free: 1.922 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.436e-05/0.4099, allocations: 9.953 kB / 0.5936 GB, free: 1.914 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.41, allocations: 83.41 kB / 0.5937 GB, free: 1.832 MB / 430.1 MB Notification: Performance of SimCode: time 1.233e-06/0.41, allocations: 4 kB / 0.5937 GB, free: 1.828 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04825/0.4583, allocations: 11.39 MB / 0.6048 GB, free: 6.621 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/13.94, allocations: 9.469 kB / 0.6048 GB, free: 6.617 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.101225485967007]