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.001252/0.001252, allocations: 112.2 kB / 17.33 MB, free: 6.02 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.001069/0.001069, allocations: 197.3 kB / 18.25 MB, free: 5.113 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.386/1.386, allocations: 222.9 MB / 241.9 MB, free: 13.67 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.1918/0.1918, allocations: 44.17 MB / 336.2 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 60.33 kB / 408 MB, free: 27.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09206, allocations: 60.82 MB / 468.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003745/0.09584, allocations: 3.031 MB / 471.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.09686, allocations: 0.7093 MB / 472.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.097, allocations: 7.938 kB / 472.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.09713, allocations: 43.62 kB / 472.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.09733, allocations: 79.38 kB / 472.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.09754, allocations: 111.8 kB / 472.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.09792, allocations: 466.5 kB / 473.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.09813, allocations: 163.9 kB / 473.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.09836, allocations: 175.4 kB / 473.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.09857, allocations: 215 kB / 473.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.152e-05/0.09863, allocations: 40 kB / 473.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.133e-05/0.09869, allocations: 40 kB / 473.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.941e-05/0.09877, allocations: 95.66 kB / 474 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.09894, allocations: 203 kB / 474.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003799/0.09933, allocations: 458.3 kB / 474.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.09934, allocations: 0 / 474.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09934, allocations: 0 / 474.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.09935, allocations: 0 / 474.6 MB, free: 8.758 MB / 350.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.001176/0.1005, allocations: 0.7097 MB / 475.3 MB, free: 8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.482e-05/0.1006, allocations: 8.031 kB / 475.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.82e-05/0.1006, allocations: 78.7 kB / 475.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.148e-05/0.1007, allocations: 48.45 kB / 475.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.101, allocations: 283.5 kB / 475.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.101, allocations: 29.38 kB / 475.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.101, allocations: 36.38 kB / 475.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.1016, allocations: 346.6 kB / 476.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1016, allocations: 4 kB / 476.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.1017, allocations: 16 kB / 476.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.1017, allocations: 8 kB / 476.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005501/0.1022, allocations: 307.8 kB / 476.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.104, allocations: 1.333 MB / 477.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004256/0.1045, allocations: 284.8 kB / 478.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/0.1047, allocations: 157.4 kB / 478.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.1048, allocations: 4.281 kB / 478.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.1048, allocations: 38.84 kB / 478.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.362e-06/0.1048, allocations: 0 / 478.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007078/0.1055, allocations: 375.3 kB / 478.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.1055, allocations: 71.22 kB / 478.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.1058, allocations: 258.7 kB / 479 MB, free: 4.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.1058, allocations: 33.7 kB / 479 MB, free: 4.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.1059, allocations: 207.9 kB / 479.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.838e-05/0.106, allocations: 118.3 kB / 479.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.662e-05/0.1061, allocations: 70.03 kB / 479.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1062, allocations: 338.8 kB / 479.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/0.1065, allocations: 108.8 kB / 479.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.1067, allocations: 171.5 kB / 480 MB, free: 3.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004515/0.1072, allocations: 292.6 kB / 480.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1072, allocations: 7.938 kB / 480.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005909/0.1078, allocations: 366 kB / 480.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.1078, allocations: 6.969 kB / 480.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.1078, allocations: 0 / 480.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.736e-06/0.1078, allocations: 7.938 kB / 480.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004397/0.1083, allocations: 104.1 kB / 480.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.493e-06/0.1083, allocations: 8 kB / 480.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.1085, allocations: 47.52 kB / 480.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.1086, allocations: 16 kB / 480.8 MB, free: 2.223 MB / 350.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.0001254/0.1087, allocations: 149.7 kB / 481 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.233e-05/0.1088, allocations: 31.62 kB / 481 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005773/0.1093, allocations: 320.4 kB / 481.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1094, allocations: 4 kB / 481.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.1094, allocations: 0 / 481.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1094, allocations: 7.984 kB / 481.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004012/0.1098, allocations: 401.1 kB / 481.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1098, allocations: 0 / 481.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.1102, allocations: 83.88 kB / 481.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1102, allocations: 7.938 kB / 481.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.1102, allocations: 7.984 kB / 481.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1102, allocations: 0 / 481.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1102, allocations: 7.984 kB / 481.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007459/0.111, allocations: 0.5226 MB / 482.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.1111, allocations: 128.7 kB / 482.5 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.1112, allocations: 4 kB / 482.5 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.1114, allocations: 11.98 kB / 482.5 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.1114, allocations: 28.03 kB / 482.5 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.1115, allocations: 4 kB / 482.5 MB, free: 436 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001547/0.1116, allocations: 194 kB / 482.7 MB, free: 244 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1116, allocations: 0 / 482.7 MB, free: 244 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.1119, allocations: 91.75 kB / 482.8 MB, free: 152 kB / 350.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.0009656/0.1129, allocations: 1.06 MB / 483.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005415/0.1135, allocations: 287.9 kB / 484.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1135, allocations: 4 kB / 484.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002276/0.1137, allocations: 140.8 kB / 484.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.114, allocations: 40.48 kB / 484.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.1176, allocations: 3.297 MB / 487.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1179, allocations: 0.7835 MB / 488.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001868/0.1181, allocations: 42.94 kB / 488.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.1182, allocations: 111.4 kB / 488.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1182, allocations: 0 / 488.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09718/0.2154, allocations: 5.446 MB / 494 MB, free: 4.91 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/0.2157, allocations: 196.5 kB / 494.2 MB, free: 4.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.244/2.46, allocations: 0 / 494.2 MB, free: 4.66 MB / 366.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