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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001089/0.001089, allocations: 106.4 kB / 16.62 MB, free: 6.734 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.001154/0.001154, allocations: 197.8 kB / 17.55 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 222.9 MB / 241.2 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1689/0.1689, allocations: 38.01 MB / 329.4 MB, free: 9.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 63.08 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09827, allocations: 58.07 MB / 456.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007095/0.1054, allocations: 6.089 MB / 462.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.1077, allocations: 1.834 MB / 464.4 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000249/0.108, allocations: 31.81 kB / 464.4 MB, free: 340 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003332/0.1083, allocations: 107.3 kB / 464.5 MB, free: 232 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006625/0.109, allocations: 294.5 kB / 464.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003203/0.1093, allocations: 135.8 kB / 464.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007897/0.1101, allocations: 0.6889 MB / 465.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005337/0.1107, allocations: 447.6 kB / 466.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003094/0.111, allocations: 286.9 kB / 466.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003404/0.1113, allocations: 302.8 kB / 466.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-05/0.1114, allocations: 48 kB / 466.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.006e-05/0.1115, allocations: 44 kB / 466.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.1116, allocations: 151.6 kB / 466.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002191/0.1118, allocations: 266.7 kB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004661/0.1123, allocations: 0.5879 MB / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1123, allocations: 0 / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1123, allocations: 0 / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.655e-06/0.1123, allocations: 0 / 467.7 MB, free: 13 MB / 350.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.001193/0.1135, allocations: 0.7776 MB / 468.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1136, allocations: 15.89 kB / 468.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.18e-05/0.1137, allocations: 86.7 kB / 468.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.719e-05/0.1138, allocations: 56.28 kB / 468.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005858/0.1144, allocations: 447.6 kB / 469.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.37e-05/0.1144, allocations: 58.7 kB / 469.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.91e-05/0.1145, allocations: 44 kB / 469.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.1153, allocations: 0.497 MB / 469.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.1153, allocations: 3.938 kB / 469.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.1154, allocations: 20 kB / 469.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.1154, allocations: 12 kB / 469.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005849/0.116, allocations: 343.7 kB / 470.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.1181, allocations: 1.976 MB / 472 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004108/0.1185, allocations: 223.6 kB / 472.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001952/0.1187, allocations: 106.6 kB / 472.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.1187, allocations: 4 kB / 472.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.1188, allocations: 30.56 kB / 472.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.502e-06/0.1188, allocations: 0 / 472.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001518/0.1203, allocations: 0.843 MB / 473.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.1204, allocations: 106.8 kB / 473.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.1206, allocations: 337.5 kB / 473.7 MB, free: 6.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.1207, allocations: 29.95 kB / 473.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1208, allocations: 275.6 kB / 474 MB, free: 6.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.475e-05/0.1209, allocations: 74.91 kB / 474 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.711e-05/0.121, allocations: 69.56 kB / 474.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1211, allocations: 346.8 kB / 474.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.1213, allocations: 79.95 kB / 474.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.1216, allocations: 217.1 kB / 474.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.1227, allocations: 0.5613 MB / 475.3 MB, free: 4.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1227, allocations: 0 / 475.3 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007895/0.1235, allocations: 412.6 kB / 475.7 MB, free: 4.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1235, allocations: 8 kB / 475.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1235, allocations: 8.031 kB / 475.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003194/0.1239, allocations: 80.78 kB / 475.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.1241, allocations: 63.91 kB / 475.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001931/0.1261, allocations: 1.939 MB / 477.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.1263, allocations: 15.98 kB / 477.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.1263, allocations: 20 kB / 477.8 MB, free: 2.18 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $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.0002347/0.1266, allocations: 197.7 kB / 478 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.488e-05/0.1266, allocations: 39.47 kB / 478.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.989e-05/0.1267, allocations: 39.31 kB / 478.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1267, allocations: 4 kB / 478.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1267, allocations: 0 / 478.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1267, allocations: 7.984 kB / 478.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.128, allocations: 0.7688 MB / 478.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.128, allocations: 7.938 kB / 478.9 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.1282, allocations: 43.97 kB / 478.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.042e-05/0.1283, allocations: 28.78 kB / 479 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.1283, allocations: 0 / 479 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008509/0.1292, allocations: 1.387 MB / 480.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1292, allocations: 7.922 kB / 480.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006943/0.1299, allocations: 0.4977 MB / 480.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.88e-05/0.13, allocations: 116.8 kB / 481 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.1301, allocations: 8 kB / 481 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1303, allocations: 11.98 kB / 481 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.27e-05/0.1304, allocations: 23.92 kB / 481 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.1304, allocations: 4 kB / 481 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.1306, allocations: 235.2 kB / 481.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1306, allocations: 0 / 481.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004951/0.1311, allocations: 91.94 kB / 481.3 MB, free: 14.41 MB / 366.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.00099/0.1321, allocations: 1.044 MB / 482.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007172/0.1329, allocations: 382.6 kB / 482.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1329, allocations: 0 / 482.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003325/0.1332, allocations: 218.5 kB / 483 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000669/0.1339, allocations: 101.4 kB / 483.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004819/0.1387, allocations: 3.861 MB / 486.9 MB, free: 8.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.1391, allocations: 0.8426 MB / 487.8 MB, free: 7.672 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000194/0.1393, allocations: 51.19 kB / 487.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.1395, allocations: 143.4 kB / 488 MB, free: 7.484 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1395, allocations: 0 / 488 MB, free: 7.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.06/2.199, allocations: 8.2 MB / 496.2 MB, free: 15.48 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/2.199, allocations: 224.7 kB / 496.4 MB, free: 15.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.424/4.624, allocations: 0 / 496.4 MB, free: 15.23 MB / 382.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)