Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001637/0.001637, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002091/0.002091, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2212/0.2212, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 79.19 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1249, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.005393/0.1303, allocations: 2.483 MB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.133, allocations: 1.078 MB / 483.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.1333, allocations: 4 kB / 483.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.1348, allocations: 0.5056 MB / 484.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005584/0.1354, allocations: 107.2 kB / 484.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1365, allocations: 486.1 kB / 484.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000449/0.137, allocations: 215 kB / 485 MB, free: 300 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005446/0.1376, allocations: 266.8 kB / 485.2 MB, free: 36 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002685/0.1378, allocations: 95.7 kB / 485.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.138, allocations: 131.5 kB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.604e-05/0.1381, allocations: 20 kB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004086/0.1385, allocations: 151.9 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.74e-05/0.1386, allocations: 47.84 kB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.1388, allocations: 119.4 kB / 485.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008366/0.1396, allocations: 398.8 kB / 486.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.1397, allocations: 7.938 kB / 486.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1397, allocations: 0 / 486.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.736e-05/0.1397, allocations: 0 / 486.2 MB, free: 15.08 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001861/0.1416, allocations: 0.6086 MB / 486.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.1416, allocations: 16.02 kB / 486.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.163e-05/0.1417, allocations: 58.73 kB / 486.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003531/0.1421, allocations: 52.62 kB / 486.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.1423, allocations: 199.9 kB / 487.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.915e-05/0.1423, allocations: 20.94 kB / 487.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.1424, allocations: 24.38 kB / 487.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006124/0.143, allocations: 291.5 kB / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.143, allocations: 0 / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.1431, allocations: 12 kB / 487.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.1431, allocations: 8 kB / 487.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005786/0.1437, allocations: 229.5 kB / 487.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.1452, allocations: 0.9973 MB / 488.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005465/0.1458, allocations: 389.7 kB / 489.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000332/0.1461, allocations: 133.7 kB / 489.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000193/0.1463, allocations: 170.2 kB / 489.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1463, allocations: 38.5 kB / 489.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.803e-06/0.1464, allocations: 0 / 489.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001217/0.1476, allocations: 0.4896 MB / 489.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.1476, allocations: 81.11 kB / 490 MB, free: 10.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.1478, allocations: 152.2 kB / 490.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.1478, allocations: 25.7 kB / 490.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.614e-05/0.1479, allocations: 144.2 kB / 490.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.361e-05/0.148, allocations: 70.95 kB / 490.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.367e-05/0.1481, allocations: 37.7 kB / 490.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1482, allocations: 322.8 kB / 490.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.1484, allocations: 67.95 kB / 490.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.1487, allocations: 125.8 kB / 490.9 MB, free: 9.961 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/0.1492, allocations: 204.4 kB / 491.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1492, allocations: 0 / 491.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006336/0.1498, allocations: 286.8 kB / 491.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1498, allocations: 4 kB / 491.4 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1499, allocations: 3.984 kB / 491.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002126/0.1501, allocations: 53.83 kB / 491.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.1503, allocations: 39.97 kB / 491.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.1524, allocations: 2.837 MB / 494.3 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.1526, allocations: 31.81 kB / 494.4 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.1526, allocations: 7.938 kB / 494.4 MB, free: 6.188 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.0001404/0.1528, allocations: 141.8 kB / 494.5 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.92e-05/0.1528, allocations: 12 kB / 494.5 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006645/0.1535, allocations: 268.2 kB / 494.8 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1535, allocations: 8 kB / 494.8 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1535, allocations: 0 / 494.8 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1536, allocations: 8.094 kB / 494.8 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.1547, allocations: 0.6458 MB / 495.4 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1547, allocations: 7.938 kB / 495.4 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.1549, allocations: 31.97 kB / 495.5 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001288/0.155, allocations: 53.62 kB / 495.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.1551, allocations: 4 kB / 495.5 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.157, allocations: 2.844 MB / 498.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.157, allocations: 0 / 498.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009076/0.158, allocations: 0.5199 MB / 498.9 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.158, allocations: 88.95 kB / 499 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.158, allocations: 8 kB / 499 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.1582, allocations: 23.91 kB / 499 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.363e-05/0.1583, allocations: 11.98 kB / 499 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.1583, allocations: 8 kB / 499 MB, free: 1.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.111e-05/0.1584, allocations: 113.8 kB / 499.1 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1584, allocations: 0 / 499.1 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004515/0.1589, allocations: 75.78 kB / 499.2 MB, free: 0.9102 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.001414/0.1603, allocations: 1.089 MB / 0.4886 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008897/0.1612, allocations: 426.4 kB / 0.489 GB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.1612, allocations: 0 / 0.489 GB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004506/0.1617, allocations: 329.2 kB / 0.4893 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.1622, allocations: 19.98 kB / 0.4893 GB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.1657, allocations: 2.34 MB / 0.4916 GB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.1661, allocations: 0.7361 MB / 0.4923 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.303e-05/0.1662, allocations: 21.41 kB / 0.4923 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.469e-05/0.1663, allocations: 59.42 kB / 0.4924 GB, free: 11.65 MB / 382.1 MB Notification: Performance of SimCode: time 3.156e-06/0.1663, allocations: 0 / 0.4924 GB, free: 11.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03803/0.2043, allocations: 4.321 MB / 0.4966 GB, free: 7.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.397/9.602, allocations: 9.344 kB / 0.4966 GB, free: 7.469 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches