Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001792/0.001792, allocations: 103.7 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.002259/0.00226, allocations: 212.6 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.483/1.483, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2247/0.2247, allocations: 46.12 MB / 344.2 MB, free: 11.61 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.002076/0.002076, allocations: 80.23 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1382, allocations: 62.44 MB / 480.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.006264/0.1446, allocations: 2.487 MB / 482.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002814/0.1474, allocations: 1.102 MB / 483.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.1476, allocations: 4 kB / 483.8 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.1494, allocations: 0.5056 MB / 484.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000432/0.1499, allocations: 107.2 kB / 484.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.1513, allocations: 489.3 kB / 484.9 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004342/0.1518, allocations: 219 kB / 485.1 MB, free: 268 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006767/0.1525, allocations: 246.8 kB / 485.3 MB, free: 24 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.1528, allocations: 103.6 kB / 485.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.1531, allocations: 127.5 kB / 485.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.389e-05/0.1531, allocations: 24 kB / 485.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004353/0.1536, allocations: 147.9 kB / 485.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.591e-05/0.1537, allocations: 55.77 kB / 485.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.1539, allocations: 111.5 kB / 485.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007828/0.1546, allocations: 406.7 kB / 486.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1547, allocations: 0 / 486.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.1547, allocations: 4 kB / 486.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.1547, allocations: 0 / 486.3 MB, free: 15.06 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.00201/0.1567, allocations: 0.6125 MB / 486.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.1568, allocations: 16.03 kB / 486.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.99e-05/0.1569, allocations: 58.73 kB / 487 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004937/0.1574, allocations: 48.62 kB / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.1576, allocations: 196 kB / 487.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.1577, allocations: 16.94 kB / 487.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.287e-05/0.1578, allocations: 28.36 kB / 487.3 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008743/0.1587, allocations: 287.5 kB / 487.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.1587, allocations: 4 kB / 487.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.529e-05/0.1587, allocations: 12 kB / 487.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1588, allocations: 11.94 kB / 487.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008409/0.1596, allocations: 233.5 kB / 487.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00241/0.162, allocations: 0.9973 MB / 488.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009098/0.163, allocations: 385.9 kB / 489.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/0.1635, allocations: 137.6 kB / 489.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003187/0.1639, allocations: 174.2 kB / 489.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.1639, allocations: 30.56 kB / 489.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 2.425e-06/0.1639, allocations: 0 / 489.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001972/0.1659, allocations: 0.4974 MB / 490 MB, free: 11.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.533e-05/0.166, allocations: 85.05 kB / 490.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.1663, allocations: 148.2 kB / 490.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.1663, allocations: 29.7 kB / 490.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.1665, allocations: 144.1 kB / 490.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.093e-05/0.1666, allocations: 70.94 kB / 490.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.1667, allocations: 33.72 kB / 490.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002258/0.1669, allocations: 322.8 kB / 490.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/0.1673, allocations: 71.94 kB / 490.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003986/0.1677, allocations: 121.8 kB / 491 MB, free: 9.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007774/0.1685, allocations: 204.3 kB / 491.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.1685, allocations: 4 kB / 491.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00112/0.1697, allocations: 286.8 kB / 491.5 MB, free: 9.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.1697, allocations: 4 kB / 491.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.1697, allocations: 4 kB / 491.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003271/0.1701, allocations: 53.88 kB / 491.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.1704, allocations: 39.91 kB / 491.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003429/0.1739, allocations: 2.829 MB / 494.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.1742, allocations: 31.86 kB / 494.5 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.1743, allocations: 7.938 kB / 494.5 MB, free: 6.164 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.0002647/0.1746, allocations: 149.2 kB / 494.6 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.1747, allocations: 15.92 kB / 494.6 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/0.1758, allocations: 272.2 kB / 494.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.1758, allocations: 7.984 kB / 494.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1758, allocations: 0 / 494.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1758, allocations: 0 / 494.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.1778, allocations: 0.6492 MB / 495.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.1778, allocations: 4 kB / 495.6 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.1781, allocations: 39.91 kB / 495.6 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002427/0.1784, allocations: 45.69 kB / 495.6 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.1784, allocations: 8 kB / 495.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/0.1818, allocations: 2.84 MB / 498.5 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1819, allocations: 8.062 kB / 498.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.1834, allocations: 0.5155 MB / 499 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.1836, allocations: 92.94 kB / 499.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/0.1836, allocations: 12 kB / 499.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.184, allocations: 15.92 kB / 499.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.208e-05/0.1841, allocations: 19.97 kB / 499.1 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.1841, allocations: 12.06 kB / 499.2 MB, free: 1.055 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.1843, allocations: 109.4 kB / 499.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1843, allocations: 0 / 499.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008269/0.1851, allocations: 75.78 kB / 499.3 MB, free: 0.875 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.002201/0.1873, allocations: 1.08 MB / 0.4887 GB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.1886, allocations: 421.5 kB / 0.4891 GB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.1887, allocations: 3.938 kB / 0.4891 GB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006676/0.1893, allocations: 329.2 kB / 0.4894 GB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006688/0.19, allocations: 11.98 kB / 0.4894 GB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005507/0.1955, allocations: 2.349 MB / 0.4917 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.1961, allocations: 0.7399 MB / 0.4924 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.1963, allocations: 21.41 kB / 0.4925 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.1964, allocations: 59.42 kB / 0.4925 GB, free: 11.61 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1964, allocations: 0 / 0.4925 GB, free: 11.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04521/0.2417, allocations: 4.281 MB / 0.4967 GB, free: 7.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.315/9.557, allocations: 14.42 kB / 0.4967 GB, free: 7.477 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1)