Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009875/0.009875, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.001987/0.001987, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.862/1.862, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001861/0.001861, allocations: 50.69 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1489, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01857/0.1676, allocations: 14.56 MB / 387.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.1811, allocations: 5.353 MB / 393.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004583/0.1858, allocations: 71.69 kB / 393.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004918/0.1908, allocations: 0.9474 MB / 394.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003933/0.1948, allocations: 0.6241 MB / 394.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001604/0.1964, allocations: 0.6047 MB / 395.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004661/0.2011, allocations: 2.413 MB / 397.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/0.203, allocations: 1.2 MB / 399 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/0.2047, allocations: 0.8715 MB / 399.8 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.2059, allocations: 0.9642 MB / 400.8 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003072/0.2062, allocations: 252 kB / 401 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005089/0.2067, allocations: 296 kB / 401.3 MB, free: 5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000431/0.2072, allocations: 498.2 kB / 401.8 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.2084, allocations: 1.073 MB / 402.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003984/0.2124, allocations: 3.015 MB / 405.9 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.2124, allocations: 0 / 405.9 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd: time 5.049e-06/0.2124, allocations: 4 kB / 405.9 MB, free: 412 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-05/0.2125, allocations: 0 / 405.9 MB, free: 412 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.004865/0.2174, allocations: 2.299 MB / 408.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.349e-05/0.2175, allocations: 15.89 kB / 408.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000823/0.2183, allocations: 275.4 kB / 408.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/0.2206, allocations: 1.175 MB / 409.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.2207, allocations: 123.7 kB / 409.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002546/0.221, allocations: 168.3 kB / 410 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/0.224, allocations: 1.597 MB / 411.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.01e-05/0.224, allocations: 3.953 kB / 411.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.2242, allocations: 68 kB / 411.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.418e-05/0.2242, allocations: 44 kB / 411.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002209/0.2264, allocations: 1.085 MB / 412.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00973/0.2362, allocations: 6.625 MB / 419.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001957/0.2382, allocations: 0.9483 MB / 420.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006483/0.2388, allocations: 310.3 kB / 420.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.518e-05/0.2389, allocations: 12.55 kB / 420.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/0.239, allocations: 39.06 kB / 420.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 4.408e-06/0.239, allocations: 4 kB / 420.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004647/0.2436, allocations: 2.057 MB / 422.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.2437, allocations: 89.61 kB / 422.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.2456, allocations: 1.277 MB / 424.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.821e-05/0.2457, allocations: 37.7 kB / 424.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006973/0.2464, allocations: 0.9138 MB / 425.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002129/0.2466, allocations: 249.9 kB / 425.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.2469, allocations: 202.8 kB / 425.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2471, allocations: 353.9 kB / 425.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006243/0.2477, allocations: 305.9 kB / 426.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009668/0.2487, allocations: 0.7041 MB / 426.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.2503, allocations: 1.047 MB / 427.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.2503, allocations: 4 kB / 427.9 MB, free: 9.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002112/0.2524, allocations: 1.173 MB / 429.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.2525, allocations: 8 kB / 429.1 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.2525, allocations: 19.94 kB / 429.1 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/0.2527, allocations: 40.84 kB / 429.1 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009033/0.2536, allocations: 259.9 kB / 429.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.255, allocations: 1.394 MB / 430.8 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009945/0.256, allocations: 63.92 kB / 430.9 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.252e-05/0.2561, allocations: 52 kB / 430.9 MB, free: 6.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00121/0.2573, allocations: 0.522 MB / 431.4 MB, free: 5.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008437/0.2581, allocations: 0.6699 MB / 432.1 MB, free: 4.789 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001354/0.2595, allocations: 0.9855 MB / 433.1 MB, free: 3.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.603e-06/0.2595, allocations: 4 kB / 433.1 MB, free: 3.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001837/0.2614, allocations: 1.099 MB / 434.2 MB, free: 2.496 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2614, allocations: 12.75 kB / 434.2 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.2614, allocations: 12 kB / 434.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001076/0.2615, allocations: 44.84 kB / 434.2 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007646/0.2623, allocations: 251.6 kB / 434.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.2635, allocations: 1.394 MB / 435.9 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008171/0.2643, allocations: 47.94 kB / 435.9 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.096e-05/0.2644, allocations: 51.98 kB / 436 MB, free: 0.5508 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * 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.0003124/0.2647, allocations: 263.8 kB / 436.2 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/0.2649, allocations: 143 kB / 436.4 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.2665, allocations: 0.6886 MB / 437.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.2665, allocations: 8 kB / 437.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2665, allocations: 3.938 kB / 437.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.2665, allocations: 4.031 kB / 437.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.2702, allocations: 2.15 MB / 439.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.2703, allocations: 0 / 439.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006158/0.2709, allocations: 131.8 kB / 439.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001133/0.271, allocations: 20.86 kB / 439.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.2711, allocations: 19.98 kB / 439.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.2722, allocations: 1.379 MB / 440.8 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2722, allocations: 160 / 440.8 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/0.2743, allocations: 1.121 MB / 441.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004986/0.2748, allocations: 287.9 kB / 442.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.275, allocations: 16 kB / 442.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000582/0.2756, allocations: 47.95 kB / 442.3 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.2757, allocations: 44.44 kB / 442.3 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.2757, allocations: 20 kB / 442.3 MB, free: 9.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.2771, allocations: 0.8541 MB / 443.2 MB, free: 9.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2771, allocations: 0 / 443.2 MB, free: 9.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001867/0.279, allocations: 0.5 MB / 443.7 MB, free: 8.555 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.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 (63): * Single equations (assignments): 62 * 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.0003027/0.2793, allocations: 139 kB / 443.8 MB, free: 8.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002734/0.2821, allocations: 1.444 MB / 445.2 MB, free: 6.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.2821, allocations: 4 kB / 445.3 MB, free: 6.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007128/0.2828, allocations: 417.7 kB / 445.7 MB, free: 6.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.2843, allocations: 337.5 kB / 446 MB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005689/0.29, allocations: 2.861 MB / 448.9 MB, free: 3.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.2912, allocations: 1.233 MB / 450.1 MB, free: 2.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000797/0.292, allocations: 178.5 kB / 450.3 MB, free: 1.828 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.2922, allocations: 91.42 kB / 450.3 MB, free: 1.738 MB / 382.1 MB Notification: Performance of SimCode: time 2.164e-06/0.2922, allocations: 0 / 450.3 MB, free: 1.738 MB / 382.1 MB Notification: Performance of Templates: time 0.3434/0.6357, allocations: 15.27 MB / 465.6 MB, free: 65.36 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)