Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.FixedShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001272, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.3199/0.3199, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002307, allocations: 83.58 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1358, allocations: 62.45 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004666/0.1405, allocations: 2.487 MB / 482.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.1424, allocations: 0.8333 MB / 483.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1426, allocations: 4 kB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1429, allocations: 63.44 kB / 483.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.1432, allocations: 107.2 kB / 483.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.1435, allocations: 103.8 kB / 483.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004/0.1439, allocations: 342.8 kB / 484.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002196/0.1441, allocations: 100.9 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002674/0.1444, allocations: 143.5 kB / 484.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.1446, allocations: 159.3 kB / 484.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.539e-05/0.1447, allocations: 32 kB / 484.6 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.321e-05/0.1448, allocations: 32 kB / 484.6 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-05/0.1449, allocations: 63.75 kB / 484.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.1451, allocations: 159.1 kB / 484.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005211/0.1456, allocations: 370.7 kB / 485.2 MB, free: 144 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.1456, allocations: 0 / 485.2 MB, free: 144 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1456, allocations: 3.938 kB / 485.2 MB, free: 140 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1456, allocations: 0 / 485.2 MB, free: 140 kB / 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.001474/0.1471, allocations: 0.6351 MB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.1472, allocations: 8.031 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.009e-05/0.1473, allocations: 58.73 kB / 485.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.1475, allocations: 40.55 kB / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.1479, allocations: 262.7 kB / 486.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.1479, allocations: 16.94 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.148, allocations: 24.38 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005845/0.1486, allocations: 252.9 kB / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1486, allocations: 4 kB / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.1486, allocations: 8 kB / 486.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.1486, allocations: 8 kB / 486.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005649/0.1492, allocations: 230.1 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.1509, allocations: 0.9025 MB / 487.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005904/0.1515, allocations: 308.3 kB / 487.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.1518, allocations: 148.8 kB / 488.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.1518, allocations: 3.984 kB / 488.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.1519, allocations: 38.56 kB / 488.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.645e-06/0.1519, allocations: 0 / 488.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.004742/0.1566, allocations: 1.258 MB / 489.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.1567, allocations: 59.39 kB / 489.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/0.157, allocations: 225 kB / 489.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.1571, allocations: 33.7 kB / 489.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1573, allocations: 173.1 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.69e-05/0.1574, allocations: 106.4 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.1575, allocations: 57.61 kB / 490 MB, free: 11.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1577, allocations: 334.8 kB / 490.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/0.1579, allocations: 95.81 kB / 490.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.1582, allocations: 125.8 kB / 490.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000485/0.1587, allocations: 236.1 kB / 490.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1587, allocations: 0 / 490.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001834/0.1605, allocations: 0.545 MB / 491.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.553e-05/0.1606, allocations: 6.344 kB / 491.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.1606, allocations: 0 / 491.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.1623, allocations: 311.1 kB / 491.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.1625, allocations: 31.97 kB / 491.7 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008905/0.1714, allocations: 6.84 MB / 498.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.1717, allocations: 23.86 kB / 498.5 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.1718, allocations: 12 kB / 498.5 MB, free: 1.852 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002448/0.172, allocations: 145.8 kB / 498.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.284e-05/0.1721, allocations: 27.62 kB / 498.7 MB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.1741, allocations: 0.5556 MB / 499.3 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.1741, allocations: 7.938 kB / 499.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1741, allocations: 3.938 kB / 499.3 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.1741, allocations: 7.969 kB / 499.3 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005363/0.1747, allocations: 353.3 kB / 499.6 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.1747, allocations: 0 / 499.6 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.1748, allocations: 15.98 kB / 499.6 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001529/0.1764, allocations: 323.2 kB / 500 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1764, allocations: 7.984 kB / 500 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008773/0.1852, allocations: 6.909 MB / 0.495 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1852, allocations: 0 / 0.495 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.187, allocations: 0.6234 MB / 0.4956 GB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.187e-05/0.1871, allocations: 112.6 kB / 0.4957 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.1872, allocations: 8 kB / 0.4957 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.1874, allocations: 11.98 kB / 0.4957 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.1875, allocations: 31.95 kB / 0.4958 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.1875, allocations: 4 kB / 0.4958 GB, free: 8.031 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001945/0.1877, allocations: 174 kB / 0.4959 GB, free: 7.859 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1877, allocations: 7.938 kB / 0.4959 GB, free: 7.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005523/0.1883, allocations: 119.8 kB / 0.496 GB, free: 7.734 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002286/0.1906, allocations: 1.152 MB / 0.4972 GB, free: 6.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.1919, allocations: 0.7686 MB / 0.4979 GB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1919, allocations: 0 / 0.4979 GB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.1933, allocations: 0.7289 MB / 0.4986 GB, free: 4.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.1937, allocations: 28.5 kB / 0.4987 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006492/0.2002, allocations: 3.162 MB / 0.5018 GB, free: 1.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.2007, allocations: 0.7756 MB / 0.5025 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.159e-05/0.2008, allocations: 9.953 kB / 0.5025 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.2009, allocations: 79.41 kB / 0.5026 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.2009, allocations: 0 / 0.5026 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3064/0.5073, allocations: 10.8 MB / 0.5131 GB, free: 40.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/12.02, allocations: 3.859 kB / 0.5131 GB, free: 40.44 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1)