Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009102/0.0009101, allocations: 173.9 kB / 16.07 MB, free: 5.723 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.223/1.223, allocations: 205.4 MB / 222.2 MB, free: 9.012 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.000773/0.0007729, allocations: 74.44 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1628/0.1628, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003507, allocations: 16 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.211/0.2113, allocations: 56.32 MB / 479.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004697/0.2161, allocations: 5.426 MB / 485 MB, free: 5.66 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.2184, allocations: 1.78 MB / 486.8 MB, free: 4.371 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003291/0.2188, allocations: 35.69 kB / 486.9 MB, free: 4.355 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003273/0.2191, allocations: 130.4 kB / 487 MB, free: 4.289 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006969/0.2198, allocations: 334 kB / 487.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004084/0.2202, allocations: 165 kB / 487.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007712/0.221, allocations: 0.7409 MB / 488.2 MB, free: 3.703 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004438/0.2215, allocations: 360.8 kB / 488.6 MB, free: 3.562 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.2218, allocations: 226.3 kB / 488.8 MB, free: 3.473 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003463/0.2221, allocations: 266.5 kB / 489.1 MB, free: 3.371 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.131e-05/0.2222, allocations: 23.62 kB / 489.1 MB, free: 3.371 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-05/0.2223, allocations: 23.69 kB / 489.1 MB, free: 3.371 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.2224, allocations: 128.9 kB / 489.2 MB, free: 3.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002089/0.2226, allocations: 254.3 kB / 489.5 MB, free: 3.164 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004344/0.2231, allocations: 465.6 kB / 489.9 MB, free: 3.051 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2231, allocations: 4 kB / 489.9 MB, free: 3.047 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2231, allocations: 0 / 489.9 MB, free: 3.047 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.2231, allocations: 1.375 kB / 489.9 MB, free: 3.047 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001001/0.2241, allocations: 0.69 MB / 490.6 MB, free: 2.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2242, allocations: 12.86 kB / 490.6 MB, free: 2.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.732e-05/0.2243, allocations: 54.69 kB / 490.7 MB, free: 2.488 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.2248, allocations: 442.9 kB / 491.1 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.837e-05/0.2249, allocations: 65.12 kB / 491.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.766e-05/0.225, allocations: 40.33 kB / 491.2 MB, free: 2.098 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007375/0.2258, allocations: 0.4979 MB / 491.7 MB, free: 1.828 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.2258, allocations: 17.23 kB / 491.7 MB, free: 1.812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.2258, allocations: 17.3 kB / 491.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.2259, allocations: 10.78 kB / 491.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005996/0.2265, allocations: 345.4 kB / 492.1 MB, free: 1.688 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.2284, allocations: 1.99 MB / 494.1 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.2288, allocations: 219.8 kB / 494.3 MB, free: 28 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.229, allocations: 110.5 kB / 494.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.229, allocations: 3.297 kB / 494.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.2291, allocations: 38.17 kB / 494.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.983e-06/0.2291, allocations: 0 / 494.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001592/0.2307, allocations: 0.8515 MB / 495.3 MB, free: 15.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.2307, allocations: 110.9 kB / 495.4 MB, free: 15.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.2311, allocations: 328.3 kB / 495.7 MB, free: 15.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.2311, allocations: 31.98 kB / 495.8 MB, free: 15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.2313, allocations: 272.6 kB / 496 MB, free: 14.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.369e-05/0.2314, allocations: 80.39 kB / 496.1 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.2314, allocations: 4.875 kB / 496.1 MB, free: 14.72 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.2315, allocations: 346.8 kB / 496.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.2317, allocations: 85.78 kB / 496.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.232, allocations: 215.7 kB / 496.8 MB, free: 14.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.2332, allocations: 0.5779 MB / 497.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2332, allocations: 2.281 kB / 497.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008293/0.2341, allocations: 419.5 kB / 497.7 MB, free: 13.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.2341, allocations: 13.5 kB / 497.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.557e-06/0.2341, allocations: 5.062 kB / 497.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003063/0.2344, allocations: 78.55 kB / 497.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.2347, allocations: 70.09 kB / 497.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.2365, allocations: 1.751 MB / 499.7 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/0.2368, allocations: 19.23 kB / 499.7 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.2368, allocations: 14.36 kB / 499.7 MB, free: 11.95 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000236/0.2371, allocations: 194.6 kB / 499.9 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.633e-05/0.2372, allocations: 45.17 kB / 499.9 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.471e-05/0.2372, allocations: 37.3 kB / 500 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.279e-06/0.2372, allocations: 3.75 kB / 500 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2373, allocations: 4.969 kB / 500 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.2373, allocations: 2.438 kB / 500 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.2385, allocations: 0.7929 MB / 0.489 GB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2385, allocations: 1.688 kB / 0.489 GB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002528/0.2388, allocations: 46.69 kB / 0.4891 GB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-05/0.2389, allocations: 26.05 kB / 0.4891 GB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.2389, allocations: 6.797 kB / 0.4891 GB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008353/0.2397, allocations: 1.285 MB / 0.4904 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2398, allocations: 2.062 kB / 0.4904 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007595/0.2405, allocations: 0.5063 MB / 0.4909 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.2407, allocations: 118.8 kB / 0.491 GB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.2407, allocations: 13.95 kB / 0.491 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.2409, allocations: 9.344 kB / 0.491 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.241, allocations: 22.84 kB / 0.491 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.241, allocations: 9.125 kB / 0.491 GB, free: 9.355 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002324/0.2412, allocations: 226.3 kB / 0.4912 GB, free: 9.234 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2413, allocations: 0 / 0.4912 GB, free: 9.234 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004847/0.2417, allocations: 86.88 kB / 0.4913 GB, free: 9.227 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * Single equations (assignments): 19 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001134/0.2419, allocations: 111.5 kB / 0.4914 GB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007322/0.2426, allocations: 375.1 kB / 0.4918 GB, free: 8.926 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2426, allocations: 320 / 0.4918 GB, free: 8.926 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003403/0.243, allocations: 227.5 kB / 0.492 GB, free: 8.773 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006649/0.2437, allocations: 94.11 kB / 0.4921 GB, free: 8.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.2453, allocations: 1.222 MB / 0.4933 GB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.2458, allocations: 0.8436 MB / 0.4941 GB, free: 7.242 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.663e-05/0.2459, allocations: 31.88 kB / 0.4941 GB, free: 7.234 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.2459, allocations: 0 / 0.4941 GB, free: 7.234 MB / 330.7 MB Notification: Performance of Templates: time 0.009064/0.255, allocations: 6.826 MB / 0.5008 GB, free: 3.652 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)