Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",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.001134/0.001134, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001179/0.001179, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.447/1.447, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.223/0.223, allocations: 44.17 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 68.45 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1196, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.004043/0.1237, allocations: 2.467 MB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1256, allocations: 1.043 MB / 472.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.1257, allocations: 4 kB / 472.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.127, allocations: 0.4979 MB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002793/0.1273, allocations: 103.3 kB / 473.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1284, allocations: 0.634 MB / 474.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003479/0.1288, allocations: 226.4 kB / 474.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004629/0.1292, allocations: 251.8 kB / 474.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.1295, allocations: 87.7 kB / 474.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.1296, allocations: 127.5 kB / 474.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.459e-05/0.1297, allocations: 20 kB / 474.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003096/0.13, allocations: 155.8 kB / 474.9 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.13, allocations: 47.84 kB / 475 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.1302, allocations: 111.5 kB / 475.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004757/0.1306, allocations: 398.7 kB / 475.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1307, allocations: 0 / 475.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1307, allocations: 0 / 475.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1307, allocations: 4 kB / 475.5 MB, free: 8.109 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001279/0.132, allocations: 0.6153 MB / 476.1 MB, free: 7.449 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.132, allocations: 12.03 kB / 476.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.909e-05/0.1321, allocations: 66.72 kB / 476.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.1324, allocations: 48.62 kB / 476.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.1326, allocations: 188 kB / 476.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.1326, allocations: 16.94 kB / 476.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.1327, allocations: 24.38 kB / 476.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005732/0.1332, allocations: 291.5 kB / 476.7 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1333, allocations: 12 kB / 476.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.1333, allocations: 4 kB / 476.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.054e-05/0.1334, allocations: 11.94 kB / 476.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005616/0.1339, allocations: 229.6 kB / 477 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.1355, allocations: 1.005 MB / 478 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005126/0.136, allocations: 379.2 kB / 478.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.1364, allocations: 137.7 kB / 478.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.575e-05/0.1365, allocations: 85.09 kB / 478.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.1365, allocations: 34.56 kB / 478.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.283e-06/0.1365, allocations: 0 / 478.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001195/0.1377, allocations: 0.4998 MB / 479.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.1378, allocations: 81.11 kB / 479.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.1379, allocations: 142 kB / 479.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.1379, allocations: 29.7 kB / 479.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.138, allocations: 148.1 kB / 479.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.1382, allocations: 70.94 kB / 479.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.347e-05/0.1382, allocations: 33.72 kB / 479.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.1384, allocations: 322.8 kB / 479.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.1386, allocations: 71.94 kB / 480 MB, free: 3.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.1388, allocations: 121.6 kB / 480.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.1393, allocations: 205.2 kB / 480.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1393, allocations: 0 / 480.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006113/0.1399, allocations: 290.8 kB / 480.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1399, allocations: 5.562 kB / 480.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1399, allocations: 4 kB / 480.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002192/0.1402, allocations: 53.88 kB / 480.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.1403, allocations: 43.91 kB / 480.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.1425, allocations: 2.84 MB / 483.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.1427, allocations: 27.83 kB / 483.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.1427, allocations: 8.047 kB / 483.6 MB, free: 15.31 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.1429, allocations: 141.8 kB / 483.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.593e-05/0.1429, allocations: 11.81 kB / 483.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006691/0.1436, allocations: 268.2 kB / 484 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.1436, allocations: 8 kB / 484 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1436, allocations: 0 / 484 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1437, allocations: 7.938 kB / 484 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.145, allocations: 0.6498 MB / 484.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.145, allocations: 0 / 484.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.1452, allocations: 27.98 kB / 484.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001329/0.1454, allocations: 49.69 kB / 484.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.1454, allocations: 4 kB / 484.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.1477, allocations: 2.844 MB / 487.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1478, allocations: 0 / 487.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008783/0.1486, allocations: 0.5175 MB / 488.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.1487, allocations: 92.94 kB / 488.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.1487, allocations: 8 kB / 488.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.1489, allocations: 23.86 kB / 488.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.149, allocations: 23.91 kB / 488.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.149, allocations: 4 kB / 488.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.005e-05/0.1491, allocations: 110.1 kB / 488.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1491, allocations: 4 kB / 488.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004487/0.1496, allocations: 67.78 kB / 488.4 MB, free: 10.05 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_p.reference.gamma) * 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): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (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.001428/0.151, allocations: 1.082 MB / 489.5 MB, free: 8.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007869/0.1518, allocations: 422.8 kB / 489.9 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1518, allocations: 0 / 489.9 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004491/0.1523, allocations: 329.3 kB / 490.2 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.1527, allocations: 12 kB / 490.3 MB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.1561, allocations: 2.344 MB / 492.6 MB, free: 5.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.1565, allocations: 0.7437 MB / 493.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.723e-05/0.1566, allocations: 17.42 kB / 493.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.732e-05/0.1567, allocations: 55.42 kB / 493.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1567, allocations: 0 / 493.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0386/0.1953, allocations: 4.253 MB / 497.7 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.247/9.443, allocations: 19.33 kB / 497.7 MB, free: 0.6797 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches