Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 114.6 kB / 17.7 MB, free: 5.309 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.001188/0.001188, allocations: 191 kB / 18.63 MB, free: 4.379 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.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1768/0.1768, allocations: 38 MB / 309.8 MB, free: 5.969 MB / 254.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.001566/0.001566, allocations: 67.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2076, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.006841/0.2145, allocations: 6.334 MB / 438.4 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003508/0.218, allocations: 2.703 MB / 441.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006389/0.2187, allocations: 23.88 kB / 441.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.2199, allocations: 342 kB / 441.4 MB, free: 10.07 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001376/0.2213, allocations: 0.587 MB / 442 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006491/0.2219, allocations: 287.5 kB / 442.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.2232, allocations: 1.196 MB / 443.5 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009499/0.2242, allocations: 0.8767 MB / 444.4 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006604/0.2249, allocations: 494.3 kB / 444.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007197/0.2256, allocations: 0.5294 MB / 445.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.994e-05/0.2257, allocations: 88 kB / 445.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004675/0.2262, allocations: 323.5 kB / 445.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.2264, allocations: 343.1 kB / 446.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003246/0.2268, allocations: 454 kB / 446.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009158/0.2277, allocations: 1.371 MB / 447.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2277, allocations: 0 / 447.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2277, allocations: 0 / 447.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.2277, allocations: 7.938 kB / 447.9 MB, free: 3.543 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001743/0.2295, allocations: 1.141 MB / 449.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.2295, allocations: 11.89 kB / 449.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005729/0.2301, allocations: 135.8 kB / 449.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000989/0.2311, allocations: 0.6944 MB / 449.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.939e-05/0.2312, allocations: 83.62 kB / 450 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.208e-05/0.2313, allocations: 64 kB / 450.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.2324, allocations: 0.953 MB / 451 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/0.2324, allocations: 11.84 kB / 451 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.856e-05/0.2325, allocations: 27.98 kB / 451.1 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.63e-05/0.2326, allocations: 61.28 kB / 451.1 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.2338, allocations: 0.778 MB / 451.9 MB, free: 15.45 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004601/0.2384, allocations: 3.832 MB / 455.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008027/0.2392, allocations: 0.509 MB / 456.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004112/0.2396, allocations: 243 kB / 456.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.2397, allocations: 7.938 kB / 456.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.2397, allocations: 42.42 kB / 456.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.924e-06/0.2397, allocations: 0 / 456.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.01056/0.2503, allocations: 3.735 MB / 460.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.2503, allocations: 111.2 kB / 460.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006389/0.251, allocations: 0.5299 MB / 460.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.149e-05/0.251, allocations: 37.64 kB / 460.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/0.2513, allocations: 399.1 kB / 461.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.2515, allocations: 201.1 kB / 461.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.2518, allocations: 130.6 kB / 461.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.2519, allocations: 370.8 kB / 462 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.2524, allocations: 277.8 kB / 462.3 MB, free: 4.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005921/0.253, allocations: 0.5072 MB / 462.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.2542, allocations: 0.8481 MB / 463.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2542, allocations: 0 / 463.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003328/0.2575, allocations: 1.453 MB / 465.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2576, allocations: 8 kB / 465.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.2576, allocations: 8.062 kB / 465.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001514/0.2591, allocations: 451.3 kB / 465.5 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.2595, allocations: 119.8 kB / 465.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/0.2699, allocations: 9.135 MB / 474.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000519/0.2704, allocations: 31.89 kB / 474.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.785e-05/0.2705, allocations: 32 kB / 474.9 MB, free: 7.133 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003954/0.2709, allocations: 321.5 kB / 475.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.271, allocations: 59.25 kB / 475.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00303/0.274, allocations: 1.303 MB / 476.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2741, allocations: 8 kB / 476.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.2741, allocations: 4 kB / 476.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2741, allocations: 3.984 kB / 476.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004213/0.2783, allocations: 2.241 MB / 478.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2783, allocations: 0 / 478.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003195/0.2787, allocations: 60.05 kB / 478.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.28, allocations: 435 kB / 479.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.28, allocations: 15.92 kB / 479.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009146/0.2892, allocations: 8.877 MB / 488.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.2892, allocations: 3.938 kB / 488.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003431/0.2926, allocations: 1.848 MB / 490 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003223/0.293, allocations: 192.3 kB / 490.2 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.702e-05/0.2931, allocations: 15.98 kB / 490.2 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004108/0.2935, allocations: 16 kB / 490.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.2937, allocations: 56.42 kB / 490.3 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.2937, allocations: 27.86 kB / 490.3 MB, free: 6.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004835/0.2942, allocations: 374.8 kB / 490.7 MB, free: 6.441 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2942, allocations: 4.062 kB / 490.7 MB, free: 6.438 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009797/0.2952, allocations: 252 kB / 490.9 MB, free: 6.191 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002907/0.2955, allocations: 131.2 kB / 491.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.2977, allocations: 1.345 MB / 492.4 MB, free: 4.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2977, allocations: 0 / 492.4 MB, free: 4.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.2991, allocations: 0.968 MB / 493.4 MB, free: 3.645 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009098/0.3, allocations: 184.9 kB / 493.6 MB, free: 3.473 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.3027, allocations: 1.667 MB / 495.2 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007223/0.3034, allocations: 1.056 MB / 496.3 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003262/0.3038, allocations: 105.7 kB / 496.4 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.3039, allocations: 47.42 kB / 496.4 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3039, allocations: 0 / 496.4 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of Templates: time 0.02299/0.3269, allocations: 14.89 MB / 0.4993 GB, free: 1.637 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)