Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.DCEE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01235/0.01235, allocations: 100.6 kB / 15.73 MB, free: 6.043 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.001721/0.001721, allocations: 190 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 1.886/1.886, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001234/0.001234, allocations: 43 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1373, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01081/0.1482, allocations: 7.935 MB / 381.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007466/0.1558, allocations: 2.63 MB / 383.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002707/0.1586, allocations: 23.94 kB / 383.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002806/0.1615, allocations: 0.5519 MB / 384.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.1647, allocations: 456.4 kB / 384.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007991/0.1655, allocations: 235.8 kB / 385 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002964/0.1685, allocations: 1.428 MB / 386.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.1697, allocations: 0.5885 MB / 387 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001187/0.1709, allocations: 0.5369 MB / 387.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006588/0.1716, allocations: 0.5833 MB / 388.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.1718, allocations: 136 kB / 388.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000371/0.1722, allocations: 176 kB / 388.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003759/0.1725, allocations: 278.9 kB / 388.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000722/0.1733, allocations: 0.6453 MB / 389.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002162/0.1754, allocations: 1.693 MB / 391 MB, free: 15.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.1755, allocations: 0 / 391 MB, free: 15.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.26e-06/0.1755, allocations: 0 / 391 MB, free: 15.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.1755, allocations: 3.938 kB / 391 MB, free: 15.33 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003114/0.1786, allocations: 1.437 MB / 392.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.1787, allocations: 8.031 kB / 392.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000663/0.1794, allocations: 167.4 kB / 392.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00184/0.1812, allocations: 0.7223 MB / 393.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.334e-05/0.1813, allocations: 74 kB / 393.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/0.1816, allocations: 95.91 kB / 393.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/0.1837, allocations: 0.9307 MB / 394.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.233e-05/0.1838, allocations: 4 kB / 394.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.008e-05/0.1839, allocations: 40 kB / 394.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.1839, allocations: 24 kB / 394.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1852, allocations: 0.6246 MB / 395.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00696/0.1922, allocations: 3.874 MB / 399 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007646/0.193, allocations: 355.6 kB / 399.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003255/0.1934, allocations: 148.8 kB / 399.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.1934, allocations: 4 kB / 399.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.1935, allocations: 42.55 kB / 399.6 MB, free: 6.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 4.749e-06/0.1935, allocations: 0 / 399.6 MB, free: 6.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002964/0.1965, allocations: 1.193 MB / 400.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.1966, allocations: 85.11 kB / 400.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0014/0.198, allocations: 0.8213 MB / 401.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.765e-05/0.1981, allocations: 33.7 kB / 401.7 MB, free: 4.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006353/0.1987, allocations: 0.5601 MB / 402.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.1989, allocations: 134.2 kB / 402.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.1991, allocations: 130.5 kB / 402.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000242/0.1993, allocations: 334 kB / 402.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003438/0.1997, allocations: 141.9 kB / 403 MB, free: 2.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007418/0.2004, allocations: 460 kB / 403.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.2015, allocations: 0.6359 MB / 404.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.2016, allocations: 0 / 404.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001374/0.2029, allocations: 0.6924 MB / 404.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.203, allocations: 16.06 kB / 404.8 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/0.203, allocations: 15.98 kB / 404.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002628/0.2033, allocations: 28.86 kB / 404.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/0.2038, allocations: 159.7 kB / 405 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.2056, allocations: 1.398 MB / 406.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007766/0.2064, allocations: 35.89 kB / 406.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-05/0.2065, allocations: 40.12 kB / 406.5 MB, free: 14.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * 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: 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.0006008/0.2071, allocations: 249.6 kB / 406.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.2072, allocations: 86.91 kB / 406.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008423/0.2081, allocations: 374.6 kB / 407.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.2081, allocations: 4 kB / 407.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2081, allocations: 4 kB / 407.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2081, allocations: 0 / 407.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/0.2104, allocations: 1.269 MB / 408.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.2104, allocations: 0 / 408.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.2108, allocations: 79.83 kB / 408.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001392/0.2109, allocations: 24.84 kB / 408.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.2109, allocations: 11.94 kB / 408.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/0.2123, allocations: 1.363 MB / 409.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.2123, allocations: 8.188 kB / 409.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.2135, allocations: 0.6316 MB / 410.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003879/0.2139, allocations: 192.1 kB / 410.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.398e-05/0.214, allocations: 8 kB / 410.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003773/0.2143, allocations: 23.92 kB / 410.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.2145, allocations: 35.98 kB / 410.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.2145, allocations: 20 kB / 410.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000895/0.2154, allocations: 0.5576 MB / 411.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2154, allocations: 0 / 411.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009978/0.2164, allocations: 188 kB / 411.6 MB, free: 9.535 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * 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.0003306/0.2168, allocations: 127.2 kB / 411.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.218, allocations: 0.5027 MB / 412.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2181, allocations: 2 kB / 412.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004826/0.2185, allocations: 266.9 kB / 412.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.2198, allocations: 214.9 kB / 412.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.2232, allocations: 1.691 MB / 414.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007656/0.224, allocations: 0.9923 MB / 415.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004541/0.2244, allocations: 102.9 kB / 415.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.2246, allocations: 55.42 kB / 415.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of SimCode: time 1.283e-06/0.2246, allocations: 0 / 415.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of Templates: time 0.02784/0.2525, allocations: 9.633 MB / 425.1 MB, free: 11.83 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1)