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.001456/0.001456, allocations: 106.6 kB / 17.64 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001496/0.001496, allocations: 218.5 kB / 18.59 MB, free: 4.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2067/0.2067, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 73.22 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09261, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004038/0.09669, allocations: 3.007 MB / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.09807, allocations: 0.7792 MB / 483.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.09833, allocations: 8 kB / 483.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.09857, allocations: 55.39 kB / 484 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002799/0.09886, allocations: 99.11 kB / 484.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.09921, allocations: 123.8 kB / 484.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.0997, allocations: 458.7 kB / 484.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.09996, allocations: 155.9 kB / 484.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003169/0.1003, allocations: 191.3 kB / 485 MB, free: 328 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002706/0.1006, allocations: 211.1 kB / 485.2 MB, free: 116 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.584e-05/0.1007, allocations: 47.88 kB / 485.2 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.1008, allocations: 40 kB / 485.3 MB, free: 28 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.941e-05/0.1009, allocations: 91.72 kB / 485.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.101, allocations: 203 kB / 485.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.1014, allocations: 462.3 kB / 486 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1015, allocations: 4 kB / 486 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1015, allocations: 0 / 486 MB, free: 15.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.1015, allocations: 0 / 486 MB, free: 15.28 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.001331/0.1028, allocations: 0.7058 MB / 486.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1029, allocations: 15.97 kB / 486.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.768e-05/0.103, allocations: 78.72 kB / 486.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.1032, allocations: 52.45 kB / 486.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.1035, allocations: 275.6 kB / 487.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.1035, allocations: 33.38 kB / 487.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.1036, allocations: 40.38 kB / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.1042, allocations: 346.6 kB / 487.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1042, allocations: 0 / 487.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.1042, allocations: 16 kB / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.1042, allocations: 8 kB / 487.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005711/0.1048, allocations: 307.8 kB / 487.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.1068, allocations: 1.345 MB / 489.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004572/0.1073, allocations: 277.7 kB / 489.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002626/0.1076, allocations: 161.3 kB / 489.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.1076, allocations: 4.281 kB / 489.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.1076, allocations: 38.84 kB / 489.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.563e-06/0.1077, allocations: 0 / 489.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007511/0.1084, allocations: 375.3 kB / 490.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.1085, allocations: 63.28 kB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.1087, allocations: 258.7 kB / 490.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.1087, allocations: 33.7 kB / 490.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1089, allocations: 203.9 kB / 490.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.277e-05/0.1089, allocations: 126.3 kB / 490.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.1091, allocations: 70.03 kB / 490.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1092, allocations: 334.8 kB / 491.1 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.1094, allocations: 104.8 kB / 491.2 MB, free: 9.805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/0.1097, allocations: 179.5 kB / 491.4 MB, free: 9.605 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000475/0.1101, allocations: 292.6 kB / 491.7 MB, free: 9.297 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.1102, allocations: 3.938 kB / 491.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006144/0.1108, allocations: 366 kB / 492.1 MB, free: 8.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1108, allocations: 12.22 kB / 492.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1108, allocations: 0 / 492.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1108, allocations: 4 kB / 492.1 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.1113, allocations: 103.8 kB / 492.2 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1113, allocations: 4 kB / 492.2 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.1116, allocations: 47.52 kB / 492.2 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.635e-05/0.1116, allocations: 16 kB / 492.2 MB, free: 8.746 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.0001307/0.1117, allocations: 149.7 kB / 492.4 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.1118, allocations: 35.62 kB / 492.4 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005798/0.1124, allocations: 324.1 kB / 492.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1124, allocations: 7.938 kB / 492.7 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1124, allocations: 0 / 492.7 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1124, allocations: 3.984 kB / 492.7 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004078/0.1128, allocations: 401.1 kB / 493.1 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1129, allocations: 4 kB / 493.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000388/0.1132, allocations: 87.88 kB / 493.2 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1133, allocations: 0 / 493.2 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.1133, allocations: 8 kB / 493.2 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1133, allocations: 3.984 kB / 493.2 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1133, allocations: 0 / 493.2 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007795/0.1141, allocations: 0.5143 MB / 493.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.1142, allocations: 128.7 kB / 493.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.1142, allocations: 8 kB / 493.9 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.1145, allocations: 11.98 kB / 493.9 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.1145, allocations: 23.97 kB / 493.9 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.1146, allocations: 4 kB / 493.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.1147, allocations: 194 kB / 494.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1147, allocations: 0 / 494.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.1151, allocations: 91.75 kB / 494.2 MB, free: 6.672 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.0009893/0.1161, allocations: 1.064 MB / 495.3 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005987/0.1167, allocations: 295.9 kB / 495.6 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1167, allocations: 0 / 495.6 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.1169, allocations: 139.8 kB / 495.7 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.1173, allocations: 24.55 kB / 495.7 MB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003727/0.121, allocations: 3.156 MB / 498.9 MB, free: 1.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.1213, allocations: 0.7835 MB / 499.7 MB, free: 1.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.1215, allocations: 38.95 kB / 499.7 MB, free: 1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.1217, allocations: 115.3 kB / 499.8 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1217, allocations: 4 kB / 499.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2215/0.3432, allocations: 5.584 MB / 0.4935 GB, free: 11.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.558/9.901, allocations: 15.94 kB / 0.4936 GB, free: 11.38 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