Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.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.BasicComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.BasicComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents",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.001715/0.001715, allocations: 104.2 kB / 17.63 MB, free: 5.531 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.001978/0.001978, allocations: 191.9 kB / 18.56 MB, free: 4.609 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.511/1.511, allocations: 222.9 MB / 242.3 MB, free: 15.23 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.2019/0.2019, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 64 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1104, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.BasicComponents): time 0.005196/0.1157, allocations: 3.495 MB / 472.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.1175, allocations: 0.7945 MB / 473.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.1178, allocations: 8 kB / 473.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002376/0.118, allocations: 75.23 kB / 473.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003088/0.1184, allocations: 126.8 kB / 473.9 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003996/0.1188, allocations: 127.8 kB / 474 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005486/0.1193, allocations: 0.5256 MB / 474.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003953/0.1197, allocations: 238.1 kB / 474.7 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003014/0.12, allocations: 219.2 kB / 475 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003114/0.1204, allocations: 239 kB / 475.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.115e-05/0.1204, allocations: 48 kB / 475.2 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.16e-05/0.1205, allocations: 52 kB / 475.3 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.816e-05/0.1206, allocations: 103.7 kB / 475.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002303/0.1209, allocations: 250.7 kB / 475.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005397/0.1214, allocations: 0.5527 MB / 476.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1214, allocations: 4 kB / 476.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1214, allocations: 0 / 476.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.1215, allocations: 0 / 476.2 MB, free: 7.418 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.00125/0.1227, allocations: 0.7564 MB / 476.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.1228, allocations: 8.031 kB / 477 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.036e-05/0.1229, allocations: 94.7 kB / 477 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.234e-05/0.123, allocations: 52.28 kB / 477.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000386/0.1233, allocations: 313.5 kB / 477.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.1234, allocations: 29.38 kB / 477.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.1235, allocations: 48.38 kB / 477.5 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007899/0.1243, allocations: 463.1 kB / 477.9 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1243, allocations: 3.938 kB / 477.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.459e-05/0.1244, allocations: 24 kB / 478 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.1244, allocations: 8 kB / 478 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007078/0.1251, allocations: 323.8 kB / 478.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.1275, allocations: 1.693 MB / 480 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/0.128, allocations: 245 kB / 480.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003127/0.1283, allocations: 133.7 kB / 480.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.1284, allocations: 0 / 480.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.1284, allocations: 42.56 kB / 480.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.272e-06/0.1284, allocations: 0 / 480.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.00289/0.1313, allocations: 1.342 MB / 481.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.1314, allocations: 81.11 kB / 481.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.1316, allocations: 262.5 kB / 482.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.1317, allocations: 33.7 kB / 482.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.1318, allocations: 259.5 kB / 482.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.384e-05/0.1319, allocations: 122.2 kB / 482.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.132, allocations: 78.03 kB / 482.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1322, allocations: 342.8 kB / 482.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002626/0.1324, allocations: 112.8 kB / 483 MB, free: 172 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.1328, allocations: 212.3 kB / 483.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005835/0.1334, allocations: 334.4 kB / 483.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1334, allocations: 0 / 483.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008377/0.1342, allocations: 419.6 kB / 483.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1343, allocations: 10.19 kB / 483.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1343, allocations: 4 kB / 483.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001314/0.1344, allocations: 40.77 kB / 484 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004519/0.1349, allocations: 119.8 kB / 484.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.136, allocations: 1.438 MB / 485.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.1362, allocations: 19.98 kB / 485.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.1363, allocations: 19.98 kB / 485.6 MB, free: 13.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001789/0.1365, allocations: 161.7 kB / 485.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.28e-05/0.1365, allocations: 27.72 kB / 485.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.653e-05/0.1366, allocations: 34.17 kB / 485.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1366, allocations: 8.062 kB / 485.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.1367, allocations: 4 kB / 485.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1367, allocations: 3.938 kB / 485.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.1377, allocations: 0.7183 MB / 486.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.1377, allocations: 4 kB / 486.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003968/0.1381, allocations: 95.94 kB / 486.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.351e-05/0.1382, allocations: 28.78 kB / 486.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/0.1382, allocations: 15.98 kB / 486.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008956/0.1391, allocations: 1.422 MB / 488.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.1392, allocations: 4.031 kB / 488.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009286/0.1401, allocations: 0.6058 MB / 488.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.1402, allocations: 120.8 kB / 488.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.161e-05/0.1403, allocations: 15.98 kB / 488.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.1405, allocations: 23.92 kB / 488.9 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.418e-05/0.1406, allocations: 19.97 kB / 488.9 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.1406, allocations: 8 kB / 488.9 MB, free: 9.773 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001798/0.1408, allocations: 186 kB / 489.1 MB, free: 9.598 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1408, allocations: 0 / 489.1 MB, free: 9.598 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.1413, allocations: 96 kB / 489.2 MB, free: 9.504 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.i,converter1.i,eddyCurrent.Phi) * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001279/0.1426, allocations: 1.139 MB / 490.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009102/0.1435, allocations: 418.7 kB / 490.7 MB, free: 7.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.1435, allocations: 7.938 kB / 490.7 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004092/0.1439, allocations: 250.5 kB / 491 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005508/0.1445, allocations: 41.03 kB / 491 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.1495, allocations: 3.491 MB / 494.5 MB, free: 3.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007918/0.1504, allocations: 0.8113 MB / 495.3 MB, free: 3.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003708/0.1508, allocations: 38.95 kB / 495.3 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/0.151, allocations: 135.4 kB / 495.5 MB, free: 2.922 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1511, allocations: 0 / 495.5 MB, free: 2.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.1882, allocations: 6.348 MB / 0.4901 GB, free: 12.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.519/9.707, allocations: 12.94 kB / 0.4901 GB, free: 12.69 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv --start-time 0 --stop-time 14 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.00300043 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/BasicComponents/BasicComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches