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.001353/0.001353, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001739/0.001739, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.335/1.335, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1738/0.1738, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 61.69 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1051, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006784/0.1119, allocations: 5.25 MB / 462.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.1144, allocations: 1.585 MB / 463.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.1148, allocations: 15.94 kB / 463.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004743/0.1153, allocations: 127 kB / 463.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009389/0.1162, allocations: 322.1 kB / 464.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004435/0.1167, allocations: 147.8 kB / 464.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.1178, allocations: 0.6927 MB / 465.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007575/0.1185, allocations: 447.7 kB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007408/0.1193, allocations: 282.9 kB / 465.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006324/0.1199, allocations: 298.8 kB / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.1201, allocations: 48 kB / 466.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.1203, allocations: 48 kB / 466.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.1205, allocations: 151.6 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004246/0.1209, allocations: 266.8 kB / 466.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007493/0.1217, allocations: 0.5801 MB / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1217, allocations: 4 kB / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1217, allocations: 0 / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.1218, allocations: 0 / 467.2 MB, free: 13.7 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.001814/0.1236, allocations: 0.7921 MB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.1236, allocations: 11.89 kB / 468 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.1238, allocations: 86.7 kB / 468.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.1239, allocations: 52.28 kB / 468.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000721/0.1246, allocations: 435.7 kB / 468.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.1247, allocations: 62.69 kB / 468.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.411e-05/0.1248, allocations: 47.91 kB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009047/0.1257, allocations: 0.497 MB / 469.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.1258, allocations: 4 kB / 469.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.1258, allocations: 20 kB / 469.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.1258, allocations: 12 kB / 469.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006892/0.1265, allocations: 339.6 kB / 469.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.129, allocations: 1.976 MB / 471.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004639/0.1295, allocations: 231.5 kB / 471.7 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.1297, allocations: 100.8 kB / 471.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.1298, allocations: 0 / 471.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.1298, allocations: 38.56 kB / 471.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.363e-06/0.1298, allocations: 0 / 471.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001794/0.1316, allocations: 0.8428 MB / 472.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.1317, allocations: 106.8 kB / 472.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.132, allocations: 337.5 kB / 473.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1321, allocations: 29.7 kB / 473.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.1323, allocations: 263.6 kB / 473.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.461e-05/0.1324, allocations: 82.89 kB / 473.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.1325, allocations: 65.66 kB / 473.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1326, allocations: 346.8 kB / 473.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.1328, allocations: 83.98 kB / 474 MB, free: 6.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/0.1331, allocations: 217 kB / 474.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.1343, allocations: 0.5613 MB / 474.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.1343, allocations: 4 kB / 474.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008684/0.1352, allocations: 416.5 kB / 475.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1352, allocations: 11.98 kB / 475.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.1353, allocations: 4 kB / 475.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003329/0.1356, allocations: 76.98 kB / 475.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.1358, allocations: 67.91 kB / 475.3 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001889/0.1377, allocations: 1.935 MB / 477.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.138, allocations: 16.06 kB / 477.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.138, allocations: 16 kB / 477.3 MB, free: 2.883 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.0002206/0.1382, allocations: 189.7 kB / 477.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.106e-05/0.1383, allocations: 39.55 kB / 477.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.492e-05/0.1384, allocations: 39.38 kB / 477.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1384, allocations: 8 kB / 477.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1384, allocations: 0 / 477.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1384, allocations: 4 kB / 477.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.1397, allocations: 0.7764 MB / 478.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1397, allocations: 0 / 478.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.14, allocations: 52 kB / 478.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.472e-05/0.1401, allocations: 16.84 kB / 478.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.1401, allocations: 11.94 kB / 478.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.1412, allocations: 1.383 MB / 479.8 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.1412, allocations: 3.938 kB / 479.8 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007992/0.142, allocations: 0.4978 MB / 480.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.1421, allocations: 124.7 kB / 480.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.181e-05/0.1422, allocations: 4 kB / 480.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.1424, allocations: 12 kB / 480.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.904e-05/0.1425, allocations: 19.91 kB / 480.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.1425, allocations: 12 kB / 480.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.1427, allocations: 227.2 kB / 480.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1427, allocations: 0 / 480.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006159/0.1434, allocations: 91.94 kB / 480.8 MB, free: 15.12 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.001153/0.1445, allocations: 1.04 MB / 481.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007168/0.1452, allocations: 390.4 kB / 482.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1453, allocations: 0 / 482.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.1456, allocations: 222.7 kB / 482.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006443/0.1463, allocations: 91.77 kB / 482.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004925/0.1512, allocations: 3.707 MB / 486.2 MB, free: 9.406 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.1517, allocations: 0.8387 MB / 487.1 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001935/0.1519, allocations: 55.25 kB / 487.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.152, allocations: 135.4 kB / 487.2 MB, free: 8.355 MB / 366.1 MB Notification: Performance of SimCode: time 2.074e-06/0.1521, allocations: 4 kB / 487.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04199/0.1941, allocations: 8.33 MB / 495.6 MB, free: 176 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.13, allocations: 64 / 495.6 MB, free: 176 kB / 366.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)