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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 109.5 kB / 17.78 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 188 kB / 18.71 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2031/0.2031, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3244, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004129/0.3286, allocations: 2.994 MB / 0.5213 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.33, allocations: 0.726 MB / 0.522 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.3302, allocations: 5.719 kB / 0.522 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.3304, allocations: 60.66 kB / 0.5221 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.3307, allocations: 104.3 kB / 0.5222 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003314/0.331, allocations: 119.3 kB / 0.5223 GB, free: 480 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004949/0.3315, allocations: 468.4 kB / 0.5228 GB, free: 248 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.3318, allocations: 152.6 kB / 0.5229 GB, free: 164 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.3321, allocations: 181.2 kB / 0.5231 GB, free: 80 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.3324, allocations: 209.2 kB / 0.5233 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.524e-05/0.3325, allocations: 39.22 kB / 0.5233 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.965e-05/0.3325, allocations: 39.16 kB / 0.5234 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.975e-05/0.3326, allocations: 93.02 kB / 0.5234 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.3328, allocations: 201.5 kB / 0.5236 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005191/0.3333, allocations: 467.1 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3334, allocations: 0 / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3334, allocations: 9.188 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3334, allocations: 0 / 0.5241 GB, free: 15.61 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.3348, allocations: 0.7048 MB / 0.5248 GB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3349, allocations: 8.406 kB / 0.5248 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.71e-05/0.335, allocations: 76.75 kB / 0.5249 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.311e-05/0.335, allocations: 41.56 kB / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004959/0.3355, allocations: 304 kB / 0.5252 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.3356, allocations: 28.03 kB / 0.5252 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.704e-05/0.3357, allocations: 37.53 kB / 0.5253 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006784/0.3363, allocations: 346.2 kB / 0.5256 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3364, allocations: 1.375 kB / 0.5256 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.3364, allocations: 14.75 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.3364, allocations: 10.38 kB / 0.5256 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006398/0.3371, allocations: 309.9 kB / 0.5259 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.3393, allocations: 1.329 MB / 0.5272 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005115/0.3398, allocations: 280.1 kB / 0.5275 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003141/0.3402, allocations: 166.7 kB / 0.5276 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.3402, allocations: 3.031 kB / 0.5276 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3402, allocations: 36.22 kB / 0.5277 GB, free: 13.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 3.797e-06/0.3402, allocations: 5.359 kB / 0.5277 GB, free: 13.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008402/0.3411, allocations: 371.9 kB / 0.528 GB, free: 13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.3411, allocations: 67.86 kB / 0.5281 GB, free: 12.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.3414, allocations: 260.2 kB / 0.5283 GB, free: 12.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.3415, allocations: 31.27 kB / 0.5284 GB, free: 12.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.3416, allocations: 205 kB / 0.5286 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.503e-05/0.3417, allocations: 120.7 kB / 0.5287 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.3418, allocations: 71.06 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.342, allocations: 345.8 kB / 0.5291 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.3422, allocations: 102.4 kB / 0.5292 GB, free: 11.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.3425, allocations: 174.5 kB / 0.5293 GB, free: 11.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005441/0.3431, allocations: 290 kB / 0.5296 GB, free: 11.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3431, allocations: 4.812 kB / 0.5296 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007177/0.3438, allocations: 361.8 kB / 0.53 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.3439, allocations: 6.125 kB / 0.53 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3439, allocations: 2.562 kB / 0.53 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.3439, allocations: 7.141 kB / 0.53 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/0.3444, allocations: 103.6 kB / 0.5301 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.3444, allocations: 3 kB / 0.5301 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.3447, allocations: 44.23 kB / 0.5301 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.405e-05/0.3448, allocations: 19.08 kB / 0.5301 GB, free: 11.41 MB / 398.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.0001672/0.345, allocations: 155.2 kB / 0.5303 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.461e-05/0.345, allocations: 30.12 kB / 0.5303 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006933/0.3457, allocations: 329.5 kB / 0.5306 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3457, allocations: 3.5 kB / 0.5306 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3457, allocations: 1.031 kB / 0.5306 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3458, allocations: 4 kB / 0.5306 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004901/0.3463, allocations: 410.7 kB / 0.531 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3463, allocations: 0 / 0.531 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004214/0.3467, allocations: 85.09 kB / 0.5311 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.3467, allocations: 1.281 kB / 0.5311 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.3467, allocations: 5.688 kB / 0.5311 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.3467, allocations: 2.188 kB / 0.5311 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3468, allocations: 0 / 0.5311 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008992/0.3477, allocations: 0.5164 MB / 0.5316 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.3478, allocations: 123.8 kB / 0.5317 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.3479, allocations: 9.594 kB / 0.5318 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.3481, allocations: 13.83 kB / 0.5318 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.41e-05/0.3482, allocations: 20.53 kB / 0.5318 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.3482, allocations: 10.91 kB / 0.5318 GB, free: 10.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.3484, allocations: 199.7 kB / 0.532 GB, free: 10.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3484, allocations: 0 / 0.532 GB, free: 10.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.3488, allocations: 94 kB / 0.5321 GB, free: 10 MB / 398.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.001157/0.35, allocations: 1.057 MB / 0.5331 GB, free: 9.137 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006412/0.3506, allocations: 271.1 kB / 0.5334 GB, free: 9.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3506, allocations: 1.156 kB / 0.5334 GB, free: 9.027 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003008/0.3509, allocations: 143.5 kB / 0.5335 GB, free: 8.965 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.3513, allocations: 34.61 kB / 0.5335 GB, free: 8.941 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.3563, allocations: 3.128 MB / 0.5366 GB, free: 6.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.3567, allocations: 0.7835 MB / 0.5374 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001893/0.3568, allocations: 34.7 kB / 0.5374 GB, free: 5.879 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.357, allocations: 112.9 kB / 0.5375 GB, free: 5.785 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.357, allocations: 4 kB / 0.5375 GB, free: 5.781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.3858, allocations: 5.805 MB / 0.5432 GB, free: 2.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.34/8.725, allocations: 16.84 kB / 0.5432 GB, free: 2.289 MB / 398.1 MB (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 --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) 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) Reference file matches