Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01298/0.01298, allocations: 101 kB / 15.73 MB, free: 6.047 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.00209/0.00209, allocations: 186.5 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.1 MB / 222.5 MB, free: 4.402 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 50.45 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1136, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01031/0.1239, allocations: 8.164 MB / 381.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006515/0.1305, allocations: 2.736 MB / 384.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001903/0.1326, allocations: 27.94 kB / 384.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002361/0.1349, allocations: 0.5753 MB / 384.7 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002631/0.1376, allocations: 0.5041 MB / 385.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009129/0.1385, allocations: 259.7 kB / 385.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002906/0.1414, allocations: 1.514 MB / 387 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.1426, allocations: 0.5807 MB / 387.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001285/0.1439, allocations: 0.5719 MB / 388.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000952/0.1449, allocations: 0.6145 MB / 388.7 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000241/0.1452, allocations: 140 kB / 388.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004591/0.1456, allocations: 180 kB / 389 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000292/0.1459, allocations: 286.9 kB / 389.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008444/0.1468, allocations: 0.6726 MB / 390 MB, free: 400 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002643/0.1494, allocations: 1.748 MB / 391.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.561e-05/0.1495, allocations: 4 kB / 391.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1495, allocations: 0 / 391.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.756e-05/0.1495, allocations: 0 / 391.7 MB, free: 14.63 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003508/0.153, allocations: 1.484 MB / 393.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.383e-05/0.1531, allocations: 12.03 kB / 393.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000765/0.1539, allocations: 183.4 kB / 393.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.1554, allocations: 0.7657 MB / 394.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.1555, allocations: 74 kB / 394.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.1557, allocations: 96 kB / 394.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/0.1576, allocations: 0.9425 MB / 395.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.767e-05/0.1576, allocations: 7.906 kB / 395.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.1578, allocations: 43.98 kB / 395.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.069e-05/0.1578, allocations: 24 kB / 395.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.1592, allocations: 0.6481 MB / 396 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006722/0.1659, allocations: 3.914 MB / 399.9 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009059/0.1669, allocations: 451.8 kB / 400.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006569/0.1676, allocations: 280.6 kB / 400.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.1676, allocations: 4 kB / 400.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.1677, allocations: 42.48 kB / 400.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.354e-06/0.1677, allocations: 0 / 400.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.00334/0.171, allocations: 1.553 MB / 402.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.1712, allocations: 81.11 kB / 402.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001601/0.1728, allocations: 0.8449 MB / 403.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.1728, allocations: 29.7 kB / 403.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005484/0.1734, allocations: 0.5681 MB / 403.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.1736, allocations: 161.7 kB / 403.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.1738, allocations: 134.5 kB / 404 MB, free: 1.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000227/0.1741, allocations: 334 kB / 404.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.1744, allocations: 177.8 kB / 404.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.175, allocations: 463.6 kB / 405 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009778/0.176, allocations: 0.6836 MB / 405.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.176, allocations: 4 kB / 405.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001467/0.1775, allocations: 0.7903 MB / 406.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.1775, allocations: 15.98 kB / 406.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.1775, allocations: 8 kB / 406.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/0.1778, allocations: 81.88 kB / 406.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000537/0.1784, allocations: 167.7 kB / 406.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00306/0.1815, allocations: 3.13 MB / 409.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007165/0.1822, allocations: 43.98 kB / 409.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.086e-05/0.1823, allocations: 39.98 kB / 410 MB, free: 11.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004997/0.1828, allocations: 257.5 kB / 410.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/0.183, allocations: 90.88 kB / 410.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001065/0.1841, allocations: 0.4952 MB / 410.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.1841, allocations: 8 kB / 410.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1841, allocations: 128 / 410.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.1841, allocations: 3.984 kB / 410.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002887/0.187, allocations: 1.481 MB / 412.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.187, allocations: 4 kB / 412.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.1874, allocations: 71.89 kB / 412.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000226/0.1876, allocations: 81.92 kB / 412.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.1876, allocations: 8 kB / 412.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002721/0.1904, allocations: 3.118 MB / 415.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1904, allocations: 0 / 415.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.1919, allocations: 0.8021 MB / 416.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005418/0.1925, allocations: 211.9 kB / 416.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/0.1928, allocations: 11.94 kB / 416.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.1933, allocations: 35.97 kB / 416.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.1935, allocations: 35.66 kB / 416.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.1935, allocations: 15.98 kB / 416.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001102/0.1946, allocations: 0.5732 MB / 417.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1946, allocations: 0 / 417.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001236/0.1959, allocations: 208 kB / 417.4 MB, free: 3.352 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (39): * Single equations (assignments): 37 * 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,5,100.0%), (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.0003004/0.1962, allocations: 123.3 kB / 417.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.1977, allocations: 0.7095 MB / 418.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.1977, allocations: 0 / 418.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000741/0.1984, allocations: 454.7 kB / 418.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.1997, allocations: 235.2 kB / 419 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.2035, allocations: 1.722 MB / 420.7 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008384/0.2043, allocations: 1.009 MB / 421.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005041/0.2048, allocations: 111.3 kB / 421.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.205, allocations: 59.44 kB / 421.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of SimCode: time 9.51e-07/0.205, allocations: 0 / 421.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of Templates: time 0.02671/0.2317, allocations: 10.84 MB / 432.7 MB, free: 3.945 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)