Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001489/0.001489, allocations: 113.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001861/0.001862, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1929/0.1929, allocations: 46.11 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 79.31 kB / 417.2 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.101, allocations: 62.44 MB / 479.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003888/0.1049, allocations: 3.066 MB / 482.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.1062, allocations: 0.7676 MB / 483.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002339/0.1064, allocations: 4 kB / 483.4 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.1067, allocations: 47.62 kB / 483.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.1069, allocations: 83.3 kB / 483.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.1072, allocations: 99.91 kB / 483.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.1077, allocations: 462.7 kB / 484.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.108, allocations: 152 kB / 484.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.1083, allocations: 195.3 kB / 484.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002318/0.1085, allocations: 207.1 kB / 484.7 MB, free: 460 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.307e-05/0.1086, allocations: 40 kB / 484.7 MB, free: 420 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.834e-05/0.1087, allocations: 40 kB / 484.7 MB, free: 380 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.1087, allocations: 95.67 kB / 484.8 MB, free: 284 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.1089, allocations: 203 kB / 485 MB, free: 80 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003905/0.1093, allocations: 470.3 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1093, allocations: 0 / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1093, allocations: 0 / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1093, allocations: 0 / 485.5 MB, free: 15.62 MB / 366.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.001265/0.1106, allocations: 0.702 MB / 486.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1107, allocations: 12.03 kB / 486.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.79e-05/0.1107, allocations: 74.72 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.111, allocations: 56.45 kB / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.1113, allocations: 287.5 kB / 486.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.1113, allocations: 29.38 kB / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.033e-05/0.1114, allocations: 36.38 kB / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005979/0.112, allocations: 346.6 kB / 487 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.112, allocations: 7.984 kB / 487 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.1121, allocations: 19.94 kB / 487 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.1121, allocations: 12 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.1126, allocations: 299.8 kB / 487.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.1146, allocations: 1.345 MB / 488.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004567/0.1151, allocations: 275.6 kB / 489 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/0.1154, allocations: 161.4 kB / 489.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.1154, allocations: 8.266 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.1154, allocations: 34.84 kB / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.535e-06/0.1155, allocations: 0 / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007457/0.1162, allocations: 383.2 kB / 489.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.1162, allocations: 59.34 kB / 489.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.1165, allocations: 262.7 kB / 489.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.1165, allocations: 29.7 kB / 489.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1166, allocations: 207.9 kB / 490.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.1167, allocations: 110.3 kB / 490.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1168, allocations: 70.03 kB / 490.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1169, allocations: 346.8 kB / 490.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002249/0.1172, allocations: 100.8 kB / 490.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.1174, allocations: 175.4 kB / 490.9 MB, free: 9.941 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004601/0.1179, allocations: 292.7 kB / 491.1 MB, free: 9.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1179, allocations: 11.92 kB / 491.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005961/0.1185, allocations: 358 kB / 491.5 MB, free: 9.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1185, allocations: 4 kB / 491.5 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1185, allocations: 11.98 kB / 491.5 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1186, allocations: 4 kB / 491.5 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004461/0.119, allocations: 100.1 kB / 491.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.119, allocations: 3.938 kB / 491.6 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/0.1193, allocations: 51.52 kB / 491.7 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.1193, allocations: 12 kB / 491.7 MB, free: 9.082 MB / 366.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.000135/0.1195, allocations: 153.7 kB / 491.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.312e-05/0.1195, allocations: 27.62 kB / 491.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000592/0.1201, allocations: 340 kB / 492.2 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1201, allocations: 4 kB / 492.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1202, allocations: 0 / 492.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1202, allocations: 0 / 492.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004024/0.1206, allocations: 405.1 kB / 492.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.1206, allocations: 0 / 492.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/0.121, allocations: 87.88 kB / 492.7 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.121, allocations: 0 / 492.7 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.121, allocations: 4 kB / 492.7 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.121, allocations: 4 kB / 492.7 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.121, allocations: 4 kB / 492.7 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007604/0.1218, allocations: 0.5104 MB / 493.2 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.1219, allocations: 128.7 kB / 493.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.233e-05/0.122, allocations: 8 kB / 493.3 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.1222, allocations: 11.98 kB / 493.4 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.98e-05/0.1223, allocations: 28.02 kB / 493.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.1223, allocations: 8 kB / 493.4 MB, free: 7.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.1225, allocations: 190 kB / 493.6 MB, free: 7.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1225, allocations: 0 / 493.6 MB, free: 7.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1228, allocations: 95.75 kB / 493.7 MB, free: 7 MB / 366.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.0009683/0.1238, allocations: 1.064 MB / 494.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005771/0.1244, allocations: 291.8 kB / 495 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1244, allocations: 0 / 495 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002293/0.1246, allocations: 140.3 kB / 495.2 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.125, allocations: 24.56 kB / 495.2 MB, free: 5.465 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.1287, allocations: 3.296 MB / 498.5 MB, free: 2.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.129, allocations: 0.7835 MB / 499.3 MB, free: 1.238 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.1292, allocations: 42.89 kB / 499.3 MB, free: 1.195 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.1294, allocations: 111.4 kB / 499.4 MB, free: 1.086 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1294, allocations: 0 / 499.4 MB, free: 1.086 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.662/1.791, allocations: 5.453 MB / 0.493 GB, free: 11.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/1.792, allocations: 197.5 kB / 0.4932 GB, free: 11.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.382/4.173, allocations: 3.938 kB / 0.4932 GB, free: 11.51 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches