Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 95.55 kB / 16.3 MB, free: 6.453 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.001211/0.001211, allocations: 183.2 kB / 17.2 MB, free: 6.336 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.322/1.322, allocations: 205.4 MB / 223.3 MB, free: 13.19 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1712/0.1712, allocations: 38.04 MB / 309.7 MB, free: 6.137 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.0007542/0.0007543, allocations: 12 kB / 376.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2726, allocations: 56.34 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004811/0.2775, allocations: 5.152 MB / 438.1 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.2799, allocations: 1.77 MB / 439.8 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003192/0.2802, allocations: 35.75 kB / 439.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.2806, allocations: 127.2 kB / 440 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000718/0.2813, allocations: 322.9 kB / 440.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00046/0.2818, allocations: 159.8 kB / 440.5 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004936/0.2823, allocations: 423.1 kB / 440.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/0.2826, allocations: 321.2 kB / 441.2 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.2829, allocations: 215.2 kB / 441.4 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.2831, allocations: 207.1 kB / 441.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.2832, allocations: 24 kB / 441.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.504e-05/0.2832, allocations: 24 kB / 441.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.411e-05/0.2833, allocations: 115.6 kB / 441.8 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.836e-05/0.2834, allocations: 121.5 kB / 441.9 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002874/0.2837, allocations: 458.8 kB / 442.3 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.2837, allocations: 4 kB / 442.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2837, allocations: 0 / 442.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2837, allocations: 0 / 442.3 MB, free: 9.359 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.0009833/0.2847, allocations: 0.7034 MB / 443 MB, free: 8.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2848, allocations: 15.98 kB / 443.1 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.122e-05/0.2849, allocations: 78.53 kB / 443.1 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.649e-05/0.2849, allocations: 59.3 kB / 443.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.2855, allocations: 418.9 kB / 443.6 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.424e-05/0.2856, allocations: 62.69 kB / 443.7 MB, free: 7.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.206e-05/0.2857, allocations: 48 kB / 443.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006706/0.2863, allocations: 0.4931 MB / 444.2 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.2864, allocations: 11.89 kB / 444.2 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.2864, allocations: 16 kB / 444.2 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2864, allocations: 15.95 kB / 444.2 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.287, allocations: 347.6 kB / 444.6 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.2888, allocations: 1.98 MB / 446.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000355/0.2892, allocations: 227.6 kB / 446.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.2892, allocations: 7.938 kB / 446.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.2892, allocations: 38.62 kB / 446.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.2892, allocations: 0 / 446.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001372/0.2906, allocations: 0.8583 MB / 447.7 MB, free: 3.656 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.2907, allocations: 114.7 kB / 447.8 MB, free: 3.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/0.2909, allocations: 337.5 kB / 448.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.2909, allocations: 33.69 kB / 448.2 MB, free: 3.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.752e-05/0.291, allocations: 263.7 kB / 448.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.386e-05/0.2911, allocations: 82.83 kB / 448.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.2911, allocations: 8 kB / 448.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.597e-05/0.2912, allocations: 346.8 kB / 448.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.2914, allocations: 87.89 kB / 448.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.2916, allocations: 209.3 kB / 449.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006476/0.2922, allocations: 309 kB / 449.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2922, allocations: 0 / 449.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006977/0.2929, allocations: 435.2 kB / 449.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.293, allocations: 4 kB / 449.9 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.293, allocations: 7.984 kB / 449.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002873/0.2933, allocations: 76.8 kB / 449.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.2935, allocations: 68.09 kB / 450 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.2954, allocations: 1.76 MB / 451.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.2956, allocations: 19.89 kB / 451.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.2957, allocations: 20 kB / 451.8 MB, free: 15.23 MB / 334.1 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.0002404/0.2959, allocations: 193.8 kB / 452 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.548e-05/0.296, allocations: 31.62 kB / 452 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.871e-05/0.2961, allocations: 43.25 kB / 452.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2961, allocations: 3.953 kB / 452.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.2961, allocations: 7.984 kB / 452.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2961, allocations: 3.984 kB / 452.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.2973, allocations: 0.7846 MB / 452.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.2974, allocations: 8 kB / 452.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.2976, allocations: 47.91 kB / 452.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.443e-05/0.2977, allocations: 24.88 kB / 453 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.2977, allocations: 8 kB / 453 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008767/0.2986, allocations: 1.284 MB / 454.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.2986, allocations: 4.031 kB / 454.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007399/0.2994, allocations: 0.5489 MB / 454.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.2995, allocations: 120.7 kB / 454.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.2995, allocations: 4 kB / 454.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.2997, allocations: 19.92 kB / 454.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.321e-05/0.2998, allocations: 19.92 kB / 455 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.2998, allocations: 4 kB / 455 MB, free: 11.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002071/0.3, allocations: 227.2 kB / 455.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3001, allocations: 0 / 455.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.3005, allocations: 88 kB / 455.3 MB, free: 11.5 MB / 334.1 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.001063/0.3016, allocations: 1.304 MB / 456.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007381/0.3024, allocations: 375.8 kB / 456.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3024, allocations: 4.125 kB / 456.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.3027, allocations: 222.5 kB / 457.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.3033, allocations: 85.75 kB / 457.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004605/0.3079, allocations: 5.324 MB / 462.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.3084, allocations: 0.8584 MB / 463.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.3086, allocations: 51.25 kB / 463.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.3088, allocations: 147.3 kB / 463.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3088, allocations: 0 / 463.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.3291, allocations: 7.724 MB / 471.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.3293, allocations: 214.7 kB / 471.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/2.081, allocations: 4.062 kB / 471.6 MB, free: 10.98 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) Environment - environmentSimulation: