Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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.001821/0.001821, 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.002183/0.002183, allocations: 209.3 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2417/0.2417, allocations: 46.97 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 179] 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.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 71.89 kB / 0.4961 GB, free: 7.707 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.415/0.4171, allocations: 66.04 MB / 0.5606 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.00692/0.424, allocations: 2.795 MB / 0.5633 GB, free: 1.449 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.4261, allocations: 0.7439 MB / 0.564 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004023/0.4265, allocations: 7.938 kB / 0.5641 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.4268, allocations: 59.38 kB / 0.5641 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004567/0.4273, allocations: 107 kB / 0.5642 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004934/0.4278, allocations: 115.8 kB / 0.5643 GB, free: 424 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009395/0.4287, allocations: 470.6 kB / 0.5648 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.429, allocations: 104.4 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000471/0.4295, allocations: 199.3 kB / 0.5651 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004128/0.4299, allocations: 183 kB / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.775e-05/0.43, allocations: 40 kB / 0.5653 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.4302, allocations: 44 kB / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.4303, allocations: 91.67 kB / 0.5654 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.4305, allocations: 167.2 kB / 0.5656 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007849/0.4313, allocations: 478 kB / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4313, allocations: 0 / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4313, allocations: 4 kB / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.247e-05/0.4313, allocations: 0 / 0.566 GB, free: 14.66 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.002122/0.4335, allocations: 0.6379 MB / 0.5666 GB, free: 13.99 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.4335, allocations: 8.031 kB / 0.5667 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.4336, allocations: 74.72 kB / 0.5667 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003776/0.434, allocations: 60.58 kB / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/0.4346, allocations: 242 kB / 0.567 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.937e-05/0.4347, allocations: 29.38 kB / 0.567 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.527e-05/0.4348, allocations: 36.38 kB / 0.5671 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009285/0.4357, allocations: 350.5 kB / 0.5674 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.4357, allocations: 3.938 kB / 0.5674 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.4358, allocations: 16 kB / 0.5674 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.4358, allocations: 12 kB / 0.5674 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009839/0.4368, allocations: 299.8 kB / 0.5677 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003308/0.4401, allocations: 1.201 MB / 0.5689 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007251/0.4408, allocations: 261.3 kB / 0.5692 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004093/0.4412, allocations: 141.3 kB / 0.5693 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.4412, allocations: 4.281 kB / 0.5693 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.4413, allocations: 38.84 kB / 0.5693 GB, free: 11.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 2.515e-06/0.4413, allocations: 0 / 0.5693 GB, free: 11.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.001243/0.4425, allocations: 375.5 kB / 0.5697 GB, free: 10.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.4426, allocations: 59.34 kB / 0.5697 GB, free: 10.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004459/0.443, allocations: 269.8 kB / 0.57 GB, free: 10.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.4431, allocations: 29.7 kB / 0.57 GB, free: 10.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.4433, allocations: 216.3 kB / 0.5702 GB, free: 10.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.4434, allocations: 122.9 kB / 0.5704 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.4436, allocations: 74.12 kB / 0.5704 GB, free: 9.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002154/0.4438, allocations: 338.8 kB / 0.5707 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/0.4442, allocations: 104.8 kB / 0.5708 GB, free: 9.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004579/0.4447, allocations: 175.5 kB / 0.571 GB, free: 9.293 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008013/0.4455, allocations: 284.7 kB / 0.5713 GB, free: 8.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.4455, allocations: 3.938 kB / 0.5713 GB, free: 8.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001039/0.4465, allocations: 378.3 kB / 0.5716 GB, free: 8.613 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4465, allocations: 4 kB / 0.5717 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.4465, allocations: 4 kB / 0.5717 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.4466, allocations: 4 kB / 0.5717 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/0.4472, allocations: 104.1 kB / 0.5718 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.4473, allocations: 4 kB / 0.5718 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004697/0.4477, allocations: 47.66 kB / 0.5718 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.4478, allocations: 12 kB / 0.5718 GB, free: 8.438 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002256/0.448, allocations: 153.7 kB / 0.572 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.4482, allocations: 27.81 kB / 0.572 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009589/0.4491, allocations: 329.2 kB / 0.5723 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.4492, allocations: 4 kB / 0.5723 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4492, allocations: 4 kB / 0.5723 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.4492, allocations: 3.984 kB / 0.5723 GB, free: 7.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008469/0.45, allocations: 332.4 kB / 0.5726 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.45, allocations: 7.922 kB / 0.5726 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000575/0.4506, allocations: 87.88 kB / 0.5727 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.4506, allocations: 0 / 0.5727 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.4506, allocations: 8 kB / 0.5727 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4506, allocations: 0 / 0.5727 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4506, allocations: 3.938 kB / 0.5727 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.452, allocations: 0.5263 MB / 0.5733 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.4522, allocations: 51.75 kB / 0.5733 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.865e-05/0.4523, allocations: 4 kB / 0.5733 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003289/0.4526, allocations: 11.98 kB / 0.5733 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.435e-05/0.4527, allocations: 23.95 kB / 0.5733 GB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.859e-05/0.4527, allocations: 8 kB / 0.5733 GB, free: 6.797 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003055/0.4531, allocations: 189.2 kB / 0.5735 GB, free: 6.609 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4531, allocations: 0 / 0.5735 GB, free: 6.609 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006224/0.4537, allocations: 99.78 kB / 0.5736 GB, free: 6.512 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * 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 (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001824/0.4555, allocations: 1.052 MB / 0.5747 GB, free: 5.434 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008898/0.4564, allocations: 263.7 kB / 0.5749 GB, free: 5.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4564, allocations: 0.5 kB / 0.5749 GB, free: 5.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.4568, allocations: 135.8 kB / 0.575 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.4573, allocations: 23.16 kB / 0.5751 GB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.4641, allocations: 3.145 MB / 0.5781 GB, free: 1.758 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.4644, allocations: 185.2 kB / 0.5783 GB, free: 1.555 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.4648, allocations: 38.94 kB / 0.5783 GB, free: 1.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/0.465, allocations: 115.4 kB / 0.5784 GB, free: 1.406 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.465, allocations: 4 kB / 0.5785 GB, free: 1.402 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04191/0.5069, allocations: 6.396 MB / 0.5847 GB, free: 11.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.1, allocations: 10.73 kB / 0.5847 GB, free: 11.16 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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: 15.181908112950623]