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.001377/0.001377, allocations: 115.6 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.001527/0.001527, allocations: 213.6 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.491/1.491, allocations: 230.6 MB / 257.5 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.2313/0.2313, allocations: 46.93 MB / 360.9 MB, free: 4.289 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.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.002247/0.002247, allocations: 71.83 kB / 0.4962 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3383, allocations: 66.04 MB / 0.5606 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004508/0.3428, allocations: 3.044 MB / 0.5636 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.3442, allocations: 0.779 MB / 0.5644 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.3444, allocations: 7.938 kB / 0.5644 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.3445, allocations: 67.38 kB / 0.5645 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002034/0.3448, allocations: 95.11 kB / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.3451, allocations: 119.8 kB / 0.5647 GB, free: 360 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005426/0.3456, allocations: 470.7 kB / 0.5651 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.3458, allocations: 116.4 kB / 0.5652 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.3461, allocations: 195.3 kB / 0.5654 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.3464, allocations: 207.1 kB / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.013e-05/0.3465, allocations: 40 kB / 0.5656 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.779e-05/0.3466, allocations: 40 kB / 0.5657 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.203e-05/0.3466, allocations: 95.61 kB / 0.5658 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.3468, allocations: 203 kB / 0.566 GB, free: 15 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005608/0.3474, allocations: 478 kB / 0.5664 GB, free: 14.53 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3474, allocations: 0 / 0.5664 GB, free: 14.53 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3474, allocations: 0 / 0.5664 GB, free: 14.53 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3474, allocations: 0 / 0.5664 GB, free: 14.53 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.001437/0.3488, allocations: 0.6379 MB / 0.567 GB, free: 13.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.3489, allocations: 8.031 kB / 0.567 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.538e-05/0.349, allocations: 74.72 kB / 0.5671 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002755/0.3493, allocations: 56.64 kB / 0.5672 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004583/0.3497, allocations: 242 kB / 0.5674 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.3497, allocations: 29.38 kB / 0.5674 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.292e-05/0.3498, allocations: 44.38 kB / 0.5675 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006724/0.3505, allocations: 342.6 kB / 0.5678 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.3505, allocations: 0 / 0.5678 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.726e-05/0.3505, allocations: 16 kB / 0.5678 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.3506, allocations: 15.94 kB / 0.5678 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006577/0.3512, allocations: 307.8 kB / 0.5681 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.3535, allocations: 1.287 MB / 0.5694 GB, free: 11.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004985/0.354, allocations: 256.8 kB / 0.5696 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.3543, allocations: 141.3 kB / 0.5698 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.3543, allocations: 12.27 kB / 0.5698 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.3544, allocations: 38.84 kB / 0.5698 GB, free: 10.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.523e-06/0.3544, allocations: 0 / 0.5698 GB, free: 10.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008811/0.3553, allocations: 367.6 kB / 0.5702 GB, free: 10.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.3553, allocations: 63.34 kB / 0.5702 GB, free: 10.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.3556, allocations: 265.8 kB / 0.5705 GB, free: 10.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.3556, allocations: 33.7 kB / 0.5705 GB, free: 10.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.3558, allocations: 204.3 kB / 0.5707 GB, free: 9.922 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.3559, allocations: 126.9 kB / 0.5708 GB, free: 9.797 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.356, allocations: 78.08 kB / 0.5709 GB, free: 9.715 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3562, allocations: 338.8 kB / 0.5712 GB, free: 9.375 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.3564, allocations: 108.8 kB / 0.5713 GB, free: 9.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.3567, allocations: 171.5 kB / 0.5715 GB, free: 9.078 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005479/0.3573, allocations: 284.7 kB / 0.5718 GB, free: 8.777 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3573, allocations: 7.938 kB / 0.5718 GB, free: 8.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006824/0.3579, allocations: 374.4 kB / 0.5721 GB, free: 8.398 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.358, allocations: 4 kB / 0.5721 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.358, allocations: 4 kB / 0.5721 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.358, allocations: 4 kB / 0.5721 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/0.3585, allocations: 103.8 kB / 0.5722 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3585, allocations: 4 kB / 0.5722 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.3588, allocations: 35.73 kB / 0.5723 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.3588, allocations: 24.17 kB / 0.5723 GB, free: 8.223 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.0001631/0.359, allocations: 157.7 kB / 0.5724 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-05/0.359, allocations: 27.81 kB / 0.5725 GB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006738/0.3597, allocations: 325.2 kB / 0.5728 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3597, allocations: 0 / 0.5728 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3597, allocations: 4 kB / 0.5728 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.3597, allocations: 7.969 kB / 0.5728 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000489/0.3602, allocations: 384.1 kB / 0.5732 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3602, allocations: 0 / 0.5732 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.3606, allocations: 79.88 kB / 0.5732 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3606, allocations: 4 kB / 0.5732 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.3606, allocations: 8 kB / 0.5732 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.3606, allocations: 4 kB / 0.5733 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3606, allocations: 0 / 0.5733 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009028/0.3615, allocations: 0.5186 MB / 0.5738 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.3617, allocations: 55.67 kB / 0.5738 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/0.3617, allocations: 8 kB / 0.5738 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.3619, allocations: 8 kB / 0.5738 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.362, allocations: 23.95 kB / 0.5739 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.362, allocations: 11.94 kB / 0.5739 GB, free: 6.543 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.3622, allocations: 189.2 kB / 0.574 GB, free: 6.355 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3622, allocations: 12 kB / 0.5741 GB, free: 6.344 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.3626, allocations: 87.84 kB / 0.5741 GB, free: 6.258 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.001202/0.3638, allocations: 1.06 MB / 0.5752 GB, free: 5.172 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005753/0.3643, allocations: 263.8 kB / 0.5754 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3643, allocations: 0 / 0.5754 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002507/0.3646, allocations: 123.8 kB / 0.5755 GB, free: 4.793 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.3649, allocations: 30.98 kB / 0.5756 GB, free: 4.766 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004445/0.3694, allocations: 3.141 MB / 0.5786 GB, free: 1.508 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.3698, allocations: 0.7913 MB / 0.5794 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001671/0.37, allocations: 38.94 kB / 0.5794 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.3702, allocations: 111.4 kB / 0.5796 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3702, allocations: 0 / 0.5796 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03673/0.4069, allocations: 6.089 MB / 0.5855 GB, free: 10.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.24, allocations: 14.2 kB / 0.5855 GB, free: 10.6 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.116444956045598]