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.0007569/0.000757, allocations: 91.73 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 199.8 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.7 MB / 246.8 MB, free: 9.707 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1979/0.1979, allocations: 46.18 MB / 345.2 MB, free: 11.28 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002397/0.0002398, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1005, allocations: 63.57 MB / 483.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.002909/0.1035, allocations: 2.68 MB / 485.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1049, allocations: 0.7677 MB / 486.6 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1051, allocations: 7.938 kB / 486.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.1053, allocations: 39.64 kB / 486.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.1055, allocations: 83.36 kB / 486.8 MB, free: 472 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.1058, allocations: 99.83 kB / 486.9 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004757/0.1063, allocations: 442.8 kB / 487.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.1065, allocations: 140.5 kB / 487.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002777/0.1068, allocations: 151.2 kB / 487.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.1071, allocations: 187 kB / 487.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.176e-05/0.1071, allocations: 20 kB / 487.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.1e-05/0.1072, allocations: 28 kB / 487.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.738e-05/0.1073, allocations: 71.72 kB / 487.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001621/0.1074, allocations: 200.7 kB / 488.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.1078, allocations: 438.2 kB / 488.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1078, allocations: 0 / 488.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1078, allocations: 7.875 kB / 488.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.1078, allocations: 0 / 488.5 MB, free: 14.7 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.001169/0.109, allocations: 0.6435 MB / 489.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1091, allocations: 8.875 kB / 489.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.792e-05/0.1092, allocations: 78.72 kB / 489.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000237/0.1094, allocations: 56.45 kB / 489.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/0.1097, allocations: 279.6 kB / 489.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.1097, allocations: 29.38 kB / 489.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.734e-05/0.1098, allocations: 36.38 kB / 489.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.1104, allocations: 354.6 kB / 490 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.1105, allocations: 4 kB / 490 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.1105, allocations: 15.94 kB / 490 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1105, allocations: 12 kB / 490 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006144/0.1111, allocations: 311.8 kB / 490.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.1132, allocations: 1.345 MB / 491.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.1137, allocations: 282.7 kB / 491.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.114, allocations: 169.3 kB / 492.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.114, allocations: 4.281 kB / 492.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.1141, allocations: 38.84 kB / 492.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.713e-06/0.1141, allocations: 0 / 492.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008113/0.1149, allocations: 395.2 kB / 492.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.1149, allocations: 59.34 kB / 492.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.1152, allocations: 266.6 kB / 492.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.1152, allocations: 29.7 kB / 492.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1154, allocations: 204 kB / 493.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.424e-05/0.1154, allocations: 122.2 kB / 493.2 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-05/0.1155, allocations: 37.7 kB / 493.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1156, allocations: 342.8 kB / 493.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002434/0.1159, allocations: 104.8 kB / 493.7 MB, free: 9.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/0.1162, allocations: 175.5 kB / 493.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000532/0.1167, allocations: 300.6 kB / 494.1 MB, free: 8.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1167, allocations: 3.938 kB / 494.1 MB, free: 8.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006738/0.1174, allocations: 378.3 kB / 494.5 MB, free: 8.371 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1174, allocations: 4 kB / 494.5 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1174, allocations: 8 kB / 494.5 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1175, allocations: 12.2 kB / 494.5 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/0.1179, allocations: 103.9 kB / 494.6 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.1179, allocations: 4 kB / 494.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.1182, allocations: 51.52 kB / 494.7 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.1182, allocations: 8 kB / 494.7 MB, free: 8.184 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.0001528/0.1184, allocations: 157.7 kB / 494.8 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.98e-05/0.1185, allocations: 35.61 kB / 494.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006945/0.1192, allocations: 336.1 kB / 495.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.1192, allocations: 4 kB / 495.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1192, allocations: 0 / 495.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1192, allocations: 4 kB / 495.2 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004931/0.1197, allocations: 417 kB / 495.6 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1197, allocations: 0 / 495.6 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/0.1201, allocations: 87.88 kB / 495.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1201, allocations: 0 / 495.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.1202, allocations: 8 kB / 495.7 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1202, allocations: 0 / 495.7 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1202, allocations: 0 / 495.7 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008559/0.121, allocations: 0.5299 MB / 496.2 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.1212, allocations: 128.7 kB / 496.4 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.1212, allocations: 12 kB / 496.4 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.1214, allocations: 15.98 kB / 496.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.397e-05/0.1215, allocations: 19.97 kB / 496.4 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.1215, allocations: 8 kB / 496.4 MB, free: 6.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.1217, allocations: 190 kB / 496.6 MB, free: 6.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1217, allocations: 0 / 496.6 MB, free: 6.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003441/0.1221, allocations: 95.75 kB / 496.7 MB, free: 6.066 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.001069/0.1231, allocations: 1.075 MB / 497.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005836/0.1237, allocations: 291.8 kB / 498.1 MB, free: 4.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1238, allocations: 0.5 kB / 498.1 MB, free: 4.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.124, allocations: 139.9 kB / 498.2 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.1244, allocations: 28.55 kB / 498.2 MB, free: 4.516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004188/0.1286, allocations: 3.393 MB / 0.4899 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.1289, allocations: 0.7835 MB / 0.4906 GB, free: 192 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002067/0.1291, allocations: 42.94 kB / 0.4907 GB, free: 152 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.1293, allocations: 111.4 kB / 0.4908 GB, free: 40 kB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1293, allocations: 0 / 0.4908 GB, free: 40 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.1447, allocations: 5.193 MB / 0.4959 GB, free: 10.99 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.1449, allocations: 203.1 kB / 0.496 GB, free: 10.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.117, allocations: 0 / 0.496 GB, free: 10.73 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