Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01199/0.01199, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.002462/0.002463, allocations: 195 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.793/1.793, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.00158/0.001581, allocations: 50.67 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1561, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01719/0.1734, allocations: 11.68 MB / 384.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00991/0.1834, allocations: 3.223 MB / 388.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002807/0.1863, allocations: 35.94 kB / 388.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002969/0.1893, allocations: 0.6362 MB / 388.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004646/0.194, allocations: 0.6782 MB / 389.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002452/0.1965, allocations: 403.4 kB / 389.8 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006572/0.2031, allocations: 2.242 MB / 392.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002209/0.2053, allocations: 1.004 MB / 393.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002584/0.2079, allocations: 0.8327 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001935/0.2099, allocations: 0.91 MB / 394.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003448/0.2103, allocations: 216 kB / 395 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006742/0.211, allocations: 256 kB / 395.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000456/0.2114, allocations: 430.5 kB / 395.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001433/0.2129, allocations: 1.019 MB / 396.7 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004571/0.2175, allocations: 2.689 MB / 399.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.2175, allocations: 0 / 399.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2175, allocations: 4 kB / 399.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.532e-05/0.2176, allocations: 0 / 399.4 MB, free: 6.926 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005336/0.223, allocations: 2.124 MB / 401.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.987e-05/0.2231, allocations: 8.031 kB / 401.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001091/0.2242, allocations: 267.5 kB / 401.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002284/0.2265, allocations: 1.053 MB / 402.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.2266, allocations: 111.5 kB / 403 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002532/0.2268, allocations: 159.9 kB / 403.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002867/0.2297, allocations: 1.491 MB / 404.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.832e-05/0.2298, allocations: 15.88 kB / 404.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.2299, allocations: 64 kB / 404.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.089e-05/0.23, allocations: 36 kB / 404.7 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002091/0.2321, allocations: 0.9708 MB / 405.7 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01034/0.2424, allocations: 6.534 MB / 412.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009359/0.2434, allocations: 404.1 kB / 412.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004396/0.2439, allocations: 225.9 kB / 412.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.2439, allocations: 8.438 kB / 412.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005551/0.2445, allocations: 268.8 kB / 413.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.817e-06/0.2445, allocations: 0 / 413.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.00432/0.2488, allocations: 1.788 MB / 414.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002272/0.2491, allocations: 158.8 kB / 415.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/0.2516, allocations: 1.277 MB / 416.3 MB, free: 5.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/0.2517, allocations: 37.7 kB / 416.4 MB, free: 5.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009876/0.2527, allocations: 0.8972 MB / 417.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.2529, allocations: 214.3 kB / 417.5 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003786/0.2533, allocations: 218.8 kB / 417.7 MB, free: 3.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002184/0.2536, allocations: 353.9 kB / 418 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.2541, allocations: 234.5 kB / 418.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/0.2552, allocations: 0.8034 MB / 419.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.2568, allocations: 1.118 MB / 420.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.2568, allocations: 4 kB / 420.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002173/0.259, allocations: 1.177 MB / 421.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.429e-05/0.2591, allocations: 42.45 kB / 421.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-05/0.2591, allocations: 16 kB / 421.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000306/0.2594, allocations: 73.58 kB / 421.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008685/0.2603, allocations: 267.6 kB / 421.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002562/0.2629, allocations: 2.773 MB / 424.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.2643, allocations: 72.05 kB / 424.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-05/0.2644, allocations: 60 kB / 424.7 MB, free: 12.06 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009884/0.2654, allocations: 361.3 kB / 425 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/0.2656, allocations: 139.1 kB / 425.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.2668, allocations: 0.5526 MB / 425.7 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.2669, allocations: 8 kB / 425.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2669, allocations: 0 / 425.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.2669, allocations: 3.984 kB / 425.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003436/0.2703, allocations: 1.874 MB / 427.6 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.2704, allocations: 4 kB / 427.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.2708, allocations: 103.9 kB / 427.7 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.271, allocations: 42.17 kB / 427.7 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.271, allocations: 16 kB / 427.8 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/0.2733, allocations: 2.753 MB / 430.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.2733, allocations: 7.938 kB / 430.5 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.275, allocations: 0.9285 MB / 431.4 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005937/0.2756, allocations: 260.2 kB / 431.7 MB, free: 4.508 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.2757, allocations: 19.94 kB / 431.7 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005244/0.2763, allocations: 40.09 kB / 431.8 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.2764, allocations: 55.66 kB / 431.8 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.2764, allocations: 16 kB / 431.8 MB, free: 4.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001499/0.278, allocations: 0.8461 MB / 432.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.278, allocations: 3.938 kB / 432.7 MB, free: 3.527 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001393/0.2794, allocations: 311.9 kB / 433 MB, free: 3.223 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0002869/0.2797, allocations: 119.2 kB / 433.1 MB, free: 3.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.2813, allocations: 0.9253 MB / 434 MB, free: 2.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.2813, allocations: 0 / 434 MB, free: 2.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007014/0.282, allocations: 470.2 kB / 434.5 MB, free: 1.652 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.2835, allocations: 336.9 kB / 434.8 MB, free: 1.324 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00469/0.2882, allocations: 2.566 MB / 437.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.2894, allocations: 1.178 MB / 438.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007521/0.2901, allocations: 175.3 kB / 438.7 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.2904, allocations: 83.44 kB / 438.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of SimCode: time 3.887e-06/0.2904, allocations: 0 / 438.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of Templates: time 0.3212/0.6116, allocations: 15.23 MB / 454 MB, free: 68.98 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)