Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 178 kB / 16.07 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.218/1.218, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007483/0.0007482, allocations: 88.91 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1711/0.1711, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003465, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2274, allocations: 56.32 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005484/0.2329, allocations: 5.403 MB / 485 MB, free: 5.66 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005337/0.2383, allocations: 3.982 MB / 489 MB, free: 2.883 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000667/0.239, allocations: 34.78 kB / 489.1 MB, free: 2.867 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009169/0.2482, allocations: 4.516 MB / 493.6 MB, free: 1.734 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.2493, allocations: 364.9 kB / 493.9 MB, free: 1.535 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.25, allocations: 206.3 kB / 494.1 MB, free: 1.438 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002311/0.2523, allocations: 1.768 MB / 495.9 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.2534, allocations: 0.6738 MB / 496.6 MB, free: 500 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004864/0.2539, allocations: 303.9 kB / 496.9 MB, free: 340 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004888/0.2544, allocations: 397.1 kB / 497.3 MB, free: 120 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.085e-05/0.2545, allocations: 24.09 kB / 497.3 MB, free: 120 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.2546, allocations: 29.16 kB / 497.3 MB, free: 120 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.2549, allocations: 225.8 kB / 497.5 MB, free: 15.97 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003005/0.2552, allocations: 295.8 kB / 497.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006174/0.2558, allocations: 0.6267 MB / 498.4 MB, free: 15.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2558, allocations: 0 / 498.4 MB, free: 15.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2558, allocations: 5.469 kB / 498.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.2558, allocations: 0 / 498.4 MB, free: 15.32 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001368/0.2572, allocations: 0.7607 MB / 499.2 MB, free: 14.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2573, allocations: 10.28 kB / 499.2 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.2575, allocations: 69.78 kB / 499.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009191/0.2585, allocations: 0.5444 MB / 499.8 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.2585, allocations: 35.58 kB / 499.9 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-05/0.2586, allocations: 45.31 kB / 499.9 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009453/0.2595, allocations: 0.6297 MB / 0.4888 GB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.2596, allocations: 9.125 kB / 0.4888 GB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.2596, allocations: 16.84 kB / 0.4888 GB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.2598, allocations: 51.19 kB / 0.4889 GB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007202/0.2605, allocations: 463 kB / 0.4893 GB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003179/0.2637, allocations: 2.521 MB / 0.4918 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004368/0.2641, allocations: 283.6 kB / 0.4921 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.2644, allocations: 139.8 kB / 0.4922 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.2644, allocations: 2.281 kB / 0.4922 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.2644, allocations: 45.19 kB / 0.4922 GB, free: 11.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.384e-06/0.2644, allocations: 1.156 kB / 0.4922 GB, free: 11.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002978/0.2674, allocations: 1.544 MB / 0.4937 GB, free: 9.863 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.2675, allocations: 85.52 kB / 0.4938 GB, free: 9.766 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005197/0.268, allocations: 409.7 kB / 0.4942 GB, free: 9.516 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.2681, allocations: 31.61 kB / 0.4942 GB, free: 9.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.2683, allocations: 311.6 kB / 0.4945 GB, free: 9.203 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.2684, allocations: 113 kB / 0.4946 GB, free: 9.105 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.076e-05/0.2684, allocations: 9.156 kB / 0.4947 GB, free: 9.098 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.2686, allocations: 353.9 kB / 0.495 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.2688, allocations: 129.9 kB / 0.4951 GB, free: 8.691 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/0.2691, allocations: 275.9 kB / 0.4954 GB, free: 8.438 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005845/0.2697, allocations: 454.1 kB / 0.4958 GB, free: 8.086 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2697, allocations: 1.094 kB / 0.4958 GB, free: 8.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001131/0.2708, allocations: 0.6683 MB / 0.4965 GB, free: 7.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.2709, allocations: 9.062 kB / 0.4965 GB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.2709, allocations: 16.36 kB / 0.4965 GB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004487/0.2713, allocations: 149.2 kB / 0.4966 GB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/0.2717, allocations: 77.64 kB / 0.4967 GB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/0.2749, allocations: 3.385 MB / 0.5 GB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.2752, allocations: 15.56 kB / 0.5 GB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/0.2753, allocations: 30.64 kB / 0.5001 GB, free: 4.371 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003612/0.2757, allocations: 243.7 kB / 0.5003 GB, free: 4.172 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.47e-05/0.2757, allocations: 44.03 kB / 0.5003 GB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.2768, allocations: 0.5795 MB / 0.5009 GB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.2768, allocations: 7.562 kB / 0.5009 GB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007233/0.2775, allocations: 484.6 kB / 0.5014 GB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2775, allocations: 1.375 kB / 0.5014 GB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001609/0.2791, allocations: 0.9994 MB / 0.5023 GB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.2792, allocations: 4 kB / 0.5023 GB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002058/0.2794, allocations: 39.91 kB / 0.5024 GB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002875/0.2797, allocations: 84.78 kB / 0.5025 GB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.2797, allocations: 8 kB / 0.5025 GB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/0.2815, allocations: 1.859 MB / 0.5043 GB, free: 460 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.2816, allocations: 3.984 kB / 0.5043 GB, free: 456 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009731/0.2825, allocations: 0.6514 MB / 0.5049 GB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/0.2827, allocations: 136.6 kB / 0.5051 GB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.2828, allocations: 7.984 kB / 0.5051 GB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.283, allocations: 4 kB / 0.5051 GB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.964e-05/0.2831, allocations: 27.91 kB / 0.5051 GB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.2831, allocations: 15.94 kB / 0.5051 GB, free: 15.55 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003442/0.2835, allocations: 303 kB / 0.5054 GB, free: 15.26 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2835, allocations: 0 / 0.5054 GB, free: 15.26 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005901/0.2841, allocations: 120.1 kB / 0.5055 GB, free: 15.14 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001204/0.2842, allocations: 107.2 kB / 0.5056 GB, free: 15.03 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.2852, allocations: 0.6107 MB / 0.5062 GB, free: 14.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.2852, allocations: 0 / 0.5062 GB, free: 14.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.2857, allocations: 295.3 kB / 0.5065 GB, free: 14.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007174/0.2864, allocations: 110.5 kB / 0.5066 GB, free: 13.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.2884, allocations: 1.427 MB / 0.508 GB, free: 12.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.289, allocations: 0.9206 MB / 0.5089 GB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2891, allocations: 35.42 kB / 0.5089 GB, free: 11.53 MB / 346.7 MB Notification: Performance of SimCode: time 1.754e-06/0.2891, allocations: 0 / 0.5089 GB, free: 11.53 MB / 346.7 MB Notification: Performance of Templates: time 0.01244/0.3015, allocations: 9.868 MB / 0.5186 GB, free: 1.656 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)