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.001107/0.001107, allocations: 106.7 kB / 16.92 MB, free: 5.699 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.001157/0.001157, allocations: 190.6 kB / 17.85 MB, free: 5.176 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.405/1.405, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 66.75 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09527, allocations: 58.05 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00663/0.1019, allocations: 5.253 MB / 462.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.1043, allocations: 1.581 MB / 463.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.1047, allocations: 15.94 kB / 463.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004195/0.1051, allocations: 123 kB / 463.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009017/0.106, allocations: 326 kB / 464.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.1064, allocations: 151.8 kB / 464.4 MB, free: 496 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008809/0.1073, allocations: 0.685 MB / 465.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005711/0.1079, allocations: 451.6 kB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000472/0.1084, allocations: 282.9 kB / 465.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005531/0.109, allocations: 302.8 kB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.1091, allocations: 44 kB / 466.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.1092, allocations: 48 kB / 466.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.1094, allocations: 147.6 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003533/0.1098, allocations: 266.7 kB / 466.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000636/0.1104, allocations: 0.584 MB / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1104, allocations: 0 / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1105, allocations: 0 / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.1105, 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.001637/0.1121, allocations: 0.7815 MB / 468 MB, free: 12.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1122, allocations: 15.89 kB / 468 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.1123, allocations: 82.7 kB / 468 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.1124, allocations: 56.28 kB / 468.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007201/0.1131, allocations: 443.7 kB / 468.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.1133, allocations: 58.7 kB / 468.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.631e-05/0.1133, allocations: 47.91 kB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008168/0.1142, allocations: 0.497 MB / 469.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.1142, allocations: 4 kB / 469.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.1143, allocations: 20 kB / 469.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1143, allocations: 8 kB / 469.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006861/0.115, allocations: 343.6 kB / 469.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002699/0.1177, allocations: 1.972 MB / 471.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.1181, allocations: 228.5 kB / 471.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.1183, allocations: 102.5 kB / 471.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.1184, allocations: 7.984 kB / 471.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.1184, allocations: 38.55 kB / 471.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.1184, allocations: 0 / 471.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001674/0.1201, allocations: 0.8482 MB / 472.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.1202, allocations: 106.8 kB / 472.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.1205, allocations: 337.5 kB / 473.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.1205, allocations: 29.7 kB / 473.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.1207, allocations: 267.6 kB / 473.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.221e-05/0.1208, allocations: 70.91 kB / 473.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.1209, allocations: 77.64 kB / 473.6 MB, free: 6.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1211, allocations: 342.9 kB / 473.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.1213, allocations: 79.94 kB / 474 MB, free: 6.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.1216, allocations: 217.1 kB / 474.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.1228, allocations: 0.5613 MB / 474.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1228, allocations: 0 / 474.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008752/0.1237, allocations: 428.9 kB / 475.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1237, allocations: 4 kB / 475.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.1237, allocations: 11.94 kB / 475.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003272/0.124, allocations: 76.98 kB / 475.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.1243, allocations: 63.91 kB / 475.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.1263, allocations: 1.928 MB / 477.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.1265, allocations: 12 kB / 477.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.1266, allocations: 23.98 kB / 477.3 MB, free: 2.879 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.0002023/0.1268, allocations: 193.7 kB / 477.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.1269, allocations: 35.56 kB / 477.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.127, allocations: 43.31 kB / 477.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.127, allocations: 3.938 kB / 477.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.127, allocations: 8 kB / 477.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.127, allocations: 0 / 477.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.1282, allocations: 0.7765 MB / 478.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.1282, allocations: 0 / 478.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.1285, allocations: 51.94 kB / 478.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.963e-05/0.1286, allocations: 24.84 kB / 478.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.1286, allocations: 0 / 478.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009544/0.1296, allocations: 1.387 MB / 479.8 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1296, allocations: 3.984 kB / 479.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007601/0.1304, allocations: 0.4978 MB / 480.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.1305, allocations: 120.7 kB / 480.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.1305, allocations: 8 kB / 480.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.1307, allocations: 12 kB / 480.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.1308, allocations: 23.91 kB / 480.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.1308, allocations: 4 kB / 480.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.1311, allocations: 231.2 kB / 480.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1311, allocations: 0 / 480.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005035/0.1316, allocations: 91.94 kB / 480.8 MB, free: 15.11 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.0009971/0.1326, allocations: 1.043 MB / 481.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007423/0.1333, allocations: 383.2 kB / 482.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1334, allocations: 0 / 482.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.1337, allocations: 218.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.000678/0.1344, allocations: 105.7 kB / 482.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00497/0.1394, allocations: 3.697 MB / 486.2 MB, free: 9.406 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.1399, allocations: 0.8387 MB / 487.1 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.1401, 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.0001854/0.1403, allocations: 147.3 kB / 487.2 MB, free: 8.344 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1403, allocations: 0 / 487.2 MB, free: 8.344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.1711, allocations: 8.327 MB / 495.6 MB, free: 168 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.31, allocations: 0 / 495.6 MB, free: 168 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)