Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",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.001229/0.001229, allocations: 106.4 kB / 17.2 MB, free: 6.273 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.00118/0.00118, allocations: 194 kB / 18.12 MB, free: 5.363 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.378/1.378, allocations: 222.9 MB / 241.8 MB, free: 15.44 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.1982/0.1982, allocations: 44.17 MB / 336.1 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 64.25 kB / 407.8 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1012, allocations: 60.82 MB / 468.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004787/0.106, allocations: 2.703 MB / 471.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.1078, allocations: 0.7364 MB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003962/0.1082, allocations: 8 kB / 472.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.1085, allocations: 55.62 kB / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004835/0.1091, allocations: 87.42 kB / 472.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.1094, allocations: 91.86 kB / 472.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005239/0.11, allocations: 390.6 kB / 472.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002493/0.1102, allocations: 132.1 kB / 472.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.1105, allocations: 143.4 kB / 473 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.1107, allocations: 163.2 kB / 473.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.137e-05/0.1108, allocations: 20 kB / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.713e-05/0.1108, allocations: 24 kB / 473.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.041e-05/0.1109, allocations: 71.67 kB / 473.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.1111, allocations: 171 kB / 473.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003489/0.1114, allocations: 402.5 kB / 473.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1114, allocations: 0 / 473.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1114, allocations: 0 / 473.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.1115, allocations: 3.938 kB / 473.8 MB, free: 9.562 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001137/0.1126, allocations: 0.6618 MB / 474.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1127, allocations: 8.031 kB / 474.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.1128, allocations: 74.72 kB / 474.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.826e-05/0.1129, allocations: 40.47 kB / 474.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.1132, allocations: 280.4 kB / 474.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.1132, allocations: 25.38 kB / 474.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.1133, allocations: 32.38 kB / 474.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006865/0.114, allocations: 362 kB / 475.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.114, allocations: 0 / 475.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.114, allocations: 16 kB / 475.3 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.114, allocations: 19.94 kB / 475.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006174/0.1147, allocations: 267.8 kB / 475.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.1167, allocations: 1.346 MB / 476.9 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004582/0.1171, allocations: 190.6 kB / 477.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.1174, allocations: 87.5 kB / 477.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.1174, allocations: 3.984 kB / 477.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.1174, allocations: 42.56 kB / 477.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.764e-06/0.1174, allocations: 0 / 477.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000755/0.1182, allocations: 241.1 kB / 477.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.1183, allocations: 136.5 kB / 477.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.1186, allocations: 328.6 kB / 477.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.1186, allocations: 25.7 kB / 477.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.1188, allocations: 239.6 kB / 478.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.1188, allocations: 55.27 kB / 478.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.236e-05/0.1189, allocations: 57.89 kB / 478.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1191, allocations: 338.8 kB / 478.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.1193, allocations: 84.5 kB / 478.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.1196, allocations: 168.1 kB / 478.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004736/0.1201, allocations: 246.9 kB / 479.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1201, allocations: 4 kB / 479.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006311/0.1207, allocations: 312.9 kB / 479.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1208, allocations: 4 kB / 479.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.1208, allocations: 4 kB / 479.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1208, allocations: 4 kB / 479.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.1212, allocations: 92.67 kB / 479.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.1212, allocations: 11.94 kB / 479.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.1215, allocations: 51.56 kB / 479.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.1215, allocations: 8.156 kB / 479.6 MB, free: 3.348 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0001375/0.1217, allocations: 153.7 kB / 479.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.1218, allocations: 31.62 kB / 479.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.421e-05/0.1218, allocations: 34.41 kB / 479.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1218, allocations: 4.281 kB / 479.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1218, allocations: 0 / 479.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1219, allocations: 11.98 kB / 479.8 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007088/0.1226, allocations: 0.5837 MB / 480.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1226, allocations: 0 / 480.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.1229, allocations: 60.11 kB / 480.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.1229, allocations: 7.938 kB / 480.5 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.1229, allocations: 7.922 kB / 480.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.1229, allocations: 4 kB / 480.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1229, allocations: 3.984 kB / 480.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005264/0.1234, allocations: 394.5 kB / 480.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.083e-05/0.1235, allocations: 112.7 kB / 481 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.781e-05/0.1236, allocations: 7.938 kB / 481 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.1238, allocations: 19.98 kB / 481 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.1239, allocations: 19.97 kB / 481 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.1239, allocations: 4 kB / 481 MB, free: 1.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002033/0.1241, allocations: 227.1 kB / 481.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1241, allocations: 0 / 481.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.1245, allocations: 71.75 kB / 481.3 MB, free: 1.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (15): * Single equations (assignments): 15 * 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.0007774/0.1253, allocations: 0.9329 MB / 482.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004992/0.1258, allocations: 192.1 kB / 482.4 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1258, allocations: 3.938 kB / 482.4 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.126, allocations: 79.83 kB / 482.5 MB, free: 240 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.1265, allocations: 29.42 kB / 482.5 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003686/0.1302, allocations: 3.09 MB / 485.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.1305, allocations: 0.7753 MB / 486.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.1307, allocations: 22.14 kB / 486.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.1308, allocations: 103.4 kB / 486.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1308, allocations: 0 / 486.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07972/0.2105, allocations: 4.469 MB / 491 MB, free: 7.637 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.2108, allocations: 186.5 kB / 491.2 MB, free: 7.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.16, allocations: 0 / 491.2 MB, free: 7.387 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches