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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009173/0.0009173, allocations: 166.5 kB / 16.07 MB, free: 5.598 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.21/1.21, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0006938/0.0006939, allocations: 81.5 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1798/0.1798, allocations: 38.08 MB / 356.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004069/0.0004069, allocations: 8 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2672, allocations: 56.33 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004905/0.2721, allocations: 5.429 MB / 485.2 MB, free: 5.625 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.2745, allocations: 1.768 MB / 486.9 MB, free: 4.348 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003901/0.2749, allocations: 36.59 kB / 487 MB, free: 4.332 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.2753, allocations: 130.3 kB / 487.1 MB, free: 4.266 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008251/0.2761, allocations: 333 kB / 487.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.2766, allocations: 165.5 kB / 487.6 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009158/0.2776, allocations: 0.7497 MB / 488.3 MB, free: 3.672 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004678/0.278, allocations: 352.4 kB / 488.7 MB, free: 3.539 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003744/0.2784, allocations: 235.8 kB / 488.9 MB, free: 3.441 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/0.2788, allocations: 264.5 kB / 489.2 MB, free: 3.34 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.2789, allocations: 23.69 kB / 489.2 MB, free: 3.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.952e-05/0.279, allocations: 24.66 kB / 489.2 MB, free: 3.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.2791, allocations: 123.6 kB / 489.3 MB, free: 3.293 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002219/0.2793, allocations: 250.1 kB / 489.6 MB, free: 3.141 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005496/0.2799, allocations: 465.9 kB / 490 MB, free: 3.027 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2799, allocations: 4 kB / 490 MB, free: 3.023 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2799, allocations: 1.375 kB / 490 MB, free: 3.023 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.2799, allocations: 0 / 490 MB, free: 3.023 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.001154/0.2811, allocations: 0.6978 MB / 490.7 MB, free: 2.488 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.2811, allocations: 13.58 kB / 490.7 MB, free: 2.484 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.148e-05/0.2812, allocations: 79 kB / 490.8 MB, free: 2.422 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.415e-05/0.2813, allocations: 55.78 kB / 490.9 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006489/0.282, allocations: 438.6 kB / 491.3 MB, free: 2.066 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.627e-05/0.2821, allocations: 63.92 kB / 491.4 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.852e-05/0.2822, allocations: 40.5 kB / 491.4 MB, free: 2.008 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000846/0.283, allocations: 0.5015 MB / 491.9 MB, free: 1.734 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.2831, allocations: 10.44 kB / 491.9 MB, free: 1.727 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/0.2831, allocations: 16.91 kB / 491.9 MB, free: 1.715 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.2831, allocations: 14.7 kB / 492 MB, free: 1.711 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006703/0.2838, allocations: 346 kB / 492.3 MB, free: 1.598 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.2858, allocations: 1.99 MB / 494.3 MB, free: 64 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/0.2863, allocations: 224.7 kB / 494.5 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.2866, allocations: 106.5 kB / 494.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.2866, allocations: 2.406 kB / 494.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.2866, allocations: 37.41 kB / 494.6 MB, free: 15.83 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.2866, allocations: 3.938 kB / 494.6 MB, free: 15.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001728/0.2884, allocations: 0.8488 MB / 495.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.2885, allocations: 110.2 kB / 495.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/0.2889, allocations: 328.7 kB / 495.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.2889, allocations: 31.14 kB / 496 MB, free: 14.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.2891, allocations: 269.3 kB / 496.2 MB, free: 14.7 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.937e-05/0.2892, allocations: 83.73 kB / 496.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.513e-05/0.2892, allocations: 10.22 kB / 496.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.2893, allocations: 349.4 kB / 496.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.2895, allocations: 83.08 kB / 496.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.2898, allocations: 215.2 kB / 496.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.2911, allocations: 0.5783 MB / 497.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.2912, allocations: 4.938 kB / 497.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008982/0.2921, allocations: 420.6 kB / 497.9 MB, free: 13.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2921, allocations: 9.094 kB / 497.9 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.2921, allocations: 9.188 kB / 498 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003379/0.2925, allocations: 75.8 kB / 498 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.2927, allocations: 68.36 kB / 498.1 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001911/0.2946, allocations: 1.755 MB / 499.8 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.2949, allocations: 20.22 kB / 499.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.2949, allocations: 12.69 kB / 499.9 MB, free: 11.86 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.0002714/0.2952, allocations: 196.6 kB / 0.4884 GB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.109e-05/0.2953, allocations: 36.61 kB / 0.4884 GB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.967e-05/0.2954, allocations: 37.11 kB / 0.4884 GB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2954, allocations: 7.531 kB / 0.4884 GB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.2954, allocations: 3.469 kB / 0.4884 GB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.2954, allocations: 5.344 kB / 0.4884 GB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/0.2968, allocations: 0.7875 MB / 0.4892 GB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2968, allocations: 1.312 kB / 0.4892 GB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.2971, allocations: 47.41 kB / 0.4893 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.032e-05/0.2972, allocations: 26.89 kB / 0.4893 GB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.2972, allocations: 5.344 kB / 0.4893 GB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009335/0.2981, allocations: 1.282 MB / 0.4905 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.2981, allocations: 5.344 kB / 0.4905 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008649/0.299, allocations: 0.5066 MB / 0.491 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.2991, allocations: 121.9 kB / 0.4912 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/0.2992, allocations: 11.64 kB / 0.4912 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.2994, allocations: 12.42 kB / 0.4912 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.834e-05/0.2995, allocations: 17.61 kB / 0.4912 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.2995, allocations: 9.812 kB / 0.4912 GB, free: 9.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000257/0.2998, allocations: 226.5 kB / 0.4914 GB, free: 9.148 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2998, allocations: 0 / 0.4914 GB, free: 9.148 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005267/0.3003, allocations: 86.91 kB / 0.4915 GB, free: 9.141 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.001132/0.3014, allocations: 1.064 MB / 0.4925 GB, free: 8.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008322/0.3023, allocations: 370.5 kB / 0.4929 GB, free: 8.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3023, allocations: 3.938 kB / 0.4929 GB, free: 8.051 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.3027, allocations: 220.9 kB / 0.4931 GB, free: 7.906 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007196/0.3034, allocations: 98.39 kB / 0.4932 GB, free: 7.867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.3077, allocations: 2.521 MB / 0.4957 GB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.3081, allocations: 0.8396 MB / 0.4965 GB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.3083, allocations: 144.7 kB / 0.4966 GB, free: 5.352 MB / 330.7 MB Notification: Performance of SimCode: time 7.52e-07/0.3084, allocations: 0 / 0.4966 GB, free: 5.352 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.266/3.574, allocations: 8.251 MB / 0.5047 GB, free: 164 kB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)