Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001325/0.001325, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 212.6 kB / 18.58 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2402/0.2402, allocations: 46.12 MB / 344.2 MB, free: 11.6 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.003363/0.003364, allocations: 86.06 kB / 417.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1518, allocations: 62.45 MB / 480.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.006131/0.158, allocations: 4.02 MB / 484.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.1609, allocations: 1.503 MB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003698/0.1613, allocations: 11.94 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007461/0.1621, allocations: 258.5 kB / 486 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.1624, allocations: 138.8 kB / 486.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.1628, allocations: 195.7 kB / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006512/0.1635, allocations: 0.6233 MB / 486.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004089/0.1639, allocations: 272.2 kB / 487.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000351/0.1643, allocations: 243 kB / 487.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.1646, allocations: 254.8 kB / 487.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.337e-05/0.1647, allocations: 67.94 kB / 487.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.307e-05/0.1648, allocations: 64 kB / 487.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.1649, allocations: 135.5 kB / 488 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002911/0.1652, allocations: 286.5 kB / 488.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007215/0.166, allocations: 0.6929 MB / 488.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.166, allocations: 0 / 488.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.166, allocations: 0 / 488.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.166, allocations: 0 / 488.9 MB, free: 12.41 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00138/0.1674, allocations: 0.8338 MB / 489.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.1674, allocations: 8.031 kB / 489.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.1676, allocations: 90.7 kB / 489.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.1677, allocations: 64.22 kB / 489.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005615/0.1682, allocations: 403.5 kB / 490.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.1683, allocations: 33.38 kB / 490.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.513e-05/0.1684, allocations: 56.28 kB / 490.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007849/0.1692, allocations: 463.1 kB / 490.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.1692, allocations: 0 / 490.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.1693, allocations: 20 kB / 490.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1693, allocations: 12 kB / 490.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006195/0.1699, allocations: 307.8 kB / 491.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.1724, allocations: 1.665 MB / 492.9 MB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009197/0.1734, allocations: 386 kB / 493.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.1736, allocations: 116.8 kB / 493.3 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.1737, allocations: 3.984 kB / 493.3 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.1737, allocations: 38.56 kB / 493.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 2.034e-06/0.1737, allocations: 0 / 493.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001871/0.1756, allocations: 0.8956 MB / 494.3 MB, free: 6.742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.1756, allocations: 51.41 kB / 494.3 MB, free: 6.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.1762, allocations: 393.7 kB / 494.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.1762, allocations: 37.7 kB / 494.8 MB, free: 6.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.1764, allocations: 275.8 kB / 495 MB, free: 5.973 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.119e-05/0.1765, allocations: 94.72 kB / 495.1 MB, free: 5.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.1766, allocations: 57.61 kB / 495.2 MB, free: 5.816 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1768, allocations: 346.8 kB / 495.5 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/0.177, allocations: 96.81 kB / 495.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.1773, allocations: 162.5 kB / 495.8 MB, free: 5.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004769/0.1778, allocations: 250.8 kB / 496 MB, free: 4.918 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1778, allocations: 3.938 kB / 496 MB, free: 4.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006879/0.1785, allocations: 357.9 kB / 496.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1785, allocations: 7.938 kB / 496.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1786, allocations: 4 kB / 496.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001824/0.1787, allocations: 24.78 kB / 496.4 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.1791, allocations: 72.12 kB / 496.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.1805, allocations: 1.376 MB / 497.8 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.1807, allocations: 23.86 kB / 497.9 MB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.1807, allocations: 12 kB / 497.9 MB, free: 2.895 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003414/0.1811, allocations: 200.3 kB / 498.1 MB, free: 2.695 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002199/0.1813, allocations: 149 kB / 498.2 MB, free: 2.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000375/0.1817, allocations: 243.8 kB / 498.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.1817, allocations: 0 / 498.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005463/0.1823, allocations: 329.9 kB / 498.8 MB, free: 1.926 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.1823, allocations: 4 kB / 498.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1823, allocations: 4 kB / 498.8 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.18e-05/0.1824, allocations: 28.78 kB / 498.8 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.1826, allocations: 63.91 kB / 498.9 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.1837, allocations: 1.386 MB / 0.4885 GB, free: 308 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.1839, allocations: 12.03 kB / 0.4886 GB, free: 296 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.1839, allocations: 12 kB / 0.4886 GB, free: 284 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001671/0.1841, allocations: 200.1 kB / 0.4888 GB, free: 76 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.084e-05/0.1842, allocations: 39.53 kB / 0.4888 GB, free: 36 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.1843, allocations: 43.58 kB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1843, allocations: 4 kB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1843, allocations: 3.984 kB / 0.4888 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1843, allocations: 4.062 kB / 0.4888 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/0.1857, allocations: 0.8361 MB / 0.4897 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1857, allocations: 0 / 0.4897 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.186, allocations: 52.03 kB / 0.4897 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-05/0.1861, allocations: 28.78 kB / 0.4897 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.1861, allocations: 4 kB / 0.4897 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.1871, allocations: 1.375 MB / 0.4911 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1872, allocations: 4.031 kB / 0.4911 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007764/0.1879, allocations: 494.9 kB / 0.4916 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1881, allocations: 108.8 kB / 0.4917 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.1881, allocations: 7.984 kB / 0.4917 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.1883, allocations: 23.98 kB / 0.4917 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/0.1884, allocations: 23.86 kB / 0.4917 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.1884, allocations: 8.125 kB / 0.4917 GB, free: 12.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003259/0.1888, allocations: 283.2 kB / 0.492 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1888, allocations: 0 / 0.492 GB, free: 12.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005686/0.1893, allocations: 140 kB / 0.4921 GB, free: 12.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * 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 (24): * Single equations (assignments): 23 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.1904, allocations: 1.042 MB / 0.4931 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.1916, allocations: 0.5992 MB / 0.4937 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1916, allocations: 4.312 kB / 0.4937 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003639/0.1919, allocations: 225.6 kB / 0.494 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006069/0.1926, allocations: 85.59 kB / 0.494 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005674/0.1982, allocations: 4.01 MB / 0.4979 GB, free: 6.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.1987, allocations: 0.8347 MB / 0.4988 GB, free: 5.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001849/0.1989, allocations: 47.27 kB / 0.4988 GB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.1992, allocations: 167.4 kB / 0.499 GB, free: 5.113 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1992, allocations: 0 / 0.499 GB, free: 5.113 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2339/0.4331, allocations: 8.179 MB / 0.507 GB, free: 40.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.49, allocations: 9.906 kB / 0.507 GB, free: 40.93 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)