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.0006948/0.0006948, allocations: 90.19 kB / 16.65 MB, free: 6.582 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.0007339/0.0007339, allocations: 186.8 kB / 17.57 MB, free: 6.199 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.209/1.209, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1671/0.1671, allocations: 38.05 MB / 310.1 MB, free: 5.996 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.0004876/0.0004876, allocations: 16 kB / 377.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1893, allocations: 56.32 MB / 433.6 MB, free: 18.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004025/0.1934, allocations: 5.691 MB / 439.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.1952, allocations: 1.851 MB / 441.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.1954, allocations: 35.75 kB / 441.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002606/0.1957, allocations: 99.34 kB / 441.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004509/0.1961, allocations: 286.5 kB / 441.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002409/0.1964, allocations: 139.9 kB / 441.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005825/0.197, allocations: 0.8799 MB / 442.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003084/0.1973, allocations: 357.8 kB / 442.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.1975, allocations: 234.9 kB / 443.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.1978, allocations: 274.9 kB / 443.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.1978, allocations: 24 kB / 443.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.064e-05/0.1979, allocations: 24 kB / 443.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.763e-05/0.198, allocations: 123.6 kB / 443.6 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1981, allocations: 268.4 kB / 443.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.1984, allocations: 0.5564 MB / 444.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1985, allocations: 0 / 444.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1985, allocations: 8 kB / 444.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1985, allocations: 0 / 444.4 MB, free: 7.801 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.000876/0.1993, allocations: 0.692 MB / 445.1 MB, free: 7.062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.1994, allocations: 15.98 kB / 445.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.805e-05/0.1995, allocations: 74.72 kB / 445.2 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.752e-05/0.1995, allocations: 56.28 kB / 445.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000447/0.2, allocations: 443.4 kB / 445.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.809e-05/0.2001, allocations: 62.7 kB / 445.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.2001, allocations: 43.98 kB / 445.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006011/0.2007, allocations: 0.5047 MB / 446.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.2008, allocations: 0 / 446.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.2008, allocations: 24 kB / 446.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.2008, allocations: 15.98 kB / 446.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005086/0.2013, allocations: 343.6 kB / 446.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.203, allocations: 2.003 MB / 448.7 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.2033, allocations: 215.6 kB / 448.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.2035, allocations: 106.7 kB / 449 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.2035, allocations: 4 kB / 449 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/0.2035, allocations: 34.5 kB / 449 MB, free: 2.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.2035, allocations: 0 / 449 MB, free: 2.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001301/0.2048, allocations: 0.8546 MB / 449.9 MB, free: 1.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.2049, allocations: 106.8 kB / 450 MB, free: 1.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.2051, allocations: 333.5 kB / 450.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.2051, allocations: 33.7 kB / 450.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.2052, allocations: 271.6 kB / 450.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.2053, allocations: 78.84 kB / 450.7 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.2053, allocations: 37.7 kB / 450.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.355e-05/0.2054, allocations: 342.9 kB / 451 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.2056, allocations: 87.95 kB / 451.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.2058, allocations: 225.2 kB / 451.3 MB, free: 388 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.2068, allocations: 0.5874 MB / 451.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2069, allocations: 0 / 451.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007862/0.2077, allocations: 421.9 kB / 452.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2077, allocations: 8 kB / 452.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2077, allocations: 4 kB / 452.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003009/0.208, allocations: 80.7 kB / 452.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.2082, allocations: 71.91 kB / 452.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2272/0.4354, allocations: 1.752 MB / 454.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.4358, allocations: 15.98 kB / 454.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.4359, allocations: 20 kB / 454.3 MB, free: 13.2 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002936/0.4362, allocations: 185.8 kB / 454.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.12e-05/0.4363, allocations: 35.53 kB / 454.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.379e-05/0.4364, allocations: 43.25 kB / 454.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.4364, allocations: 7.938 kB / 454.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.4364, allocations: 7.984 kB / 454.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4364, allocations: 0 / 454.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.4378, allocations: 0.7843 MB / 455.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4378, allocations: 4 kB / 455.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.4381, allocations: 47.92 kB / 455.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.013e-05/0.4382, allocations: 16.84 kB / 455.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.4382, allocations: 8 kB / 455.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007573/0.439, allocations: 1.288 MB / 456.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.439, allocations: 4.094 kB / 456.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006723/0.4397, allocations: 0.5281 MB / 457.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.117e-05/0.4398, allocations: 116.8 kB / 457.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.4398, allocations: 7.938 kB / 457.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.44, allocations: 11.98 kB / 457.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.4401, allocations: 15.98 kB / 457.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.4401, allocations: 12 kB / 457.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001941/0.4403, allocations: 231.2 kB / 457.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.4403, allocations: 0 / 457.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004534/0.4408, allocations: 88 kB / 457.7 MB, free: 9.508 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008908/0.4417, allocations: 1.049 MB / 458.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006473/0.4423, allocations: 375.4 kB / 459.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4423, allocations: 4.188 kB / 459.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003113/0.4427, allocations: 214.5 kB / 459.3 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.4433, allocations: 101.4 kB / 459.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004473/0.4478, allocations: 3.992 MB / 463.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.4482, allocations: 0.8387 MB / 464.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.4484, allocations: 55.2 kB / 464.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.4485, allocations: 139.4 kB / 464.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.4485, allocations: 4 kB / 464.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.017/3.466, allocations: 7.837 MB / 472.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/3.466, allocations: 236.7 kB / 472.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.106/5.572, allocations: 0 / 472.5 MB, free: 10.39 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/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)