Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001668/0.001668, allocations: 119.6 kB / 20.44 MB, free: 1.297 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.001601/0.001601, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.2297/0.2297, allocations: 44.91 MB / 358.8 MB, free: 6.273 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.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",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.002334/0.002334, allocations: 59.91 kB / 0.4931 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3272, allocations: 65.48 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004505/0.3317, allocations: 3.036 MB / 0.56 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.3332, allocations: 0.7829 MB / 0.5608 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.3334, allocations: 11.88 kB / 0.5608 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.3336, allocations: 59.38 kB / 0.5608 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002298/0.3338, allocations: 103 kB / 0.5609 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003429/0.3341, allocations: 119.8 kB / 0.561 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005511/0.3347, allocations: 466.6 kB / 0.5615 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.3349, allocations: 112.4 kB / 0.5616 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002943/0.3352, allocations: 203.3 kB / 0.5618 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.3355, allocations: 203.1 kB / 0.562 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.85e-05/0.3356, allocations: 40 kB / 0.562 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.73e-05/0.3356, allocations: 40 kB / 0.5621 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.812e-05/0.3357, allocations: 95.67 kB / 0.5621 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.3359, allocations: 206.9 kB / 0.5623 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.3364, allocations: 470 kB / 0.5628 GB, free: 1.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3364, allocations: 4 kB / 0.5628 GB, free: 1.848 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3364, allocations: 4 kB / 0.5628 GB, free: 1.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.3364, allocations: 0 / 0.5628 GB, free: 1.844 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001414/0.3379, allocations: 0.6401 MB / 0.5634 GB, free: 1.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3379, allocations: 12.03 kB / 0.5634 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.224e-05/0.338, allocations: 74.72 kB / 0.5635 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.3382, allocations: 56.64 kB / 0.5636 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.3387, allocations: 234 kB / 0.5638 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.3387, allocations: 33.38 kB / 0.5638 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.249e-05/0.3388, allocations: 40.38 kB / 0.5639 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.3394, allocations: 350.5 kB / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.3394, allocations: 0 / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.768e-05/0.3394, allocations: 16 kB / 0.5642 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3394, allocations: 8 kB / 0.5642 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006106/0.3401, allocations: 303.8 kB / 0.5645 GB, free: 32 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002318/0.3424, allocations: 1.291 MB / 0.5658 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/0.3429, allocations: 256.9 kB / 0.566 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.3432, allocations: 141.3 kB / 0.5661 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.3432, allocations: 4.281 kB / 0.5661 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.3432, allocations: 38.84 kB / 0.5662 GB, free: 14.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.964e-06/0.3432, allocations: 4 kB / 0.5662 GB, free: 14.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008487/0.3441, allocations: 371.5 kB / 0.5665 GB, free: 13.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.3441, allocations: 59.34 kB / 0.5666 GB, free: 13.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003011/0.3444, allocations: 261.8 kB / 0.5668 GB, free: 13.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.3445, allocations: 33.7 kB / 0.5669 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.3446, allocations: 208.3 kB / 0.5671 GB, free: 13.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.3447, allocations: 126.9 kB / 0.5672 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3448, allocations: 78.08 kB / 0.5673 GB, free: 13.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.345, allocations: 338.8 kB / 0.5676 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002476/0.3453, allocations: 108.8 kB / 0.5677 GB, free: 12.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.3456, allocations: 175.5 kB / 0.5679 GB, free: 12.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005425/0.3461, allocations: 284.7 kB / 0.5681 GB, free: 12.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.3461, allocations: 3.938 kB / 0.5681 GB, free: 12.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007182/0.3468, allocations: 374.3 kB / 0.5685 GB, free: 11.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3469, allocations: 8 kB / 0.5685 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3469, allocations: 4.219 kB / 0.5685 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.3469, allocations: 4 kB / 0.5685 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000511/0.3474, allocations: 103.9 kB / 0.5686 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.3474, allocations: 4 kB / 0.5686 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.3477, allocations: 39.72 kB / 0.5687 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/0.3477, allocations: 16 kB / 0.5687 GB, free: 11.54 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.0001946/0.3479, allocations: 153.6 kB / 0.5688 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.368e-05/0.348, allocations: 31.81 kB / 0.5688 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007098/0.3487, allocations: 325.2 kB / 0.5692 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3487, allocations: 7.984 kB / 0.5692 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3487, allocations: 0 / 0.5692 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.3487, allocations: 7.984 kB / 0.5692 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005423/0.3493, allocations: 376.1 kB / 0.5695 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3493, allocations: 0 / 0.5695 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.3497, allocations: 83.88 kB / 0.5696 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.3497, allocations: 8 kB / 0.5696 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.3497, allocations: 8 kB / 0.5696 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3497, allocations: 0 / 0.5696 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3497, allocations: 4 kB / 0.5696 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009309/0.3507, allocations: 0.5146 MB / 0.5701 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.3508, allocations: 55.73 kB / 0.5702 GB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.252e-05/0.3509, allocations: 8.062 kB / 0.5702 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.3511, allocations: 12 kB / 0.5702 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.3511, allocations: 23.95 kB / 0.5702 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.3512, allocations: 11.98 kB / 0.5702 GB, free: 9.855 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.3514, allocations: 185.2 kB / 0.5704 GB, free: 9.672 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3514, allocations: 3.938 kB / 0.5704 GB, free: 9.668 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.3518, allocations: 91.84 kB / 0.5705 GB, free: 9.578 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.001298/0.353, allocations: 1.064 MB / 0.5715 GB, free: 8.488 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006647/0.3537, allocations: 264.1 kB / 0.5718 GB, free: 8.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3537, allocations: 4.062 kB / 0.5718 GB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.354, allocations: 119.8 kB / 0.5719 GB, free: 8.109 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004809/0.3545, allocations: 36.42 kB / 0.572 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.3594, allocations: 3.145 MB / 0.575 GB, free: 4.812 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.3599, allocations: 0.7874 MB / 0.5758 GB, free: 4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001903/0.36, allocations: 42.94 kB / 0.5758 GB, free: 3.961 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.3602, allocations: 107.4 kB / 0.5759 GB, free: 3.855 MB / 414.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3602, allocations: 0 / 0.5759 GB, free: 3.855 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03651/0.3967, allocations: 6.083 MB / 0.5819 GB, free: 13.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.05, allocations: 14.89 kB / 0.5819 GB, free: 13.91 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 14.98586551984772]