Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.001456/0.001456, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001661/0.001661, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.343/1.343, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1848/0.1848, allocations: 38.03 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 64.92 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.111, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007726/0.1188, allocations: 5.16 MB / 462.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003329/0.1222, allocations: 1.986 MB / 464.1 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007921/0.123, allocations: 19.88 kB / 464.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.124, allocations: 150.9 kB / 464.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001434/0.1256, allocations: 361.8 kB / 464.6 MB, free: 264 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006704/0.1263, allocations: 219.2 kB / 464.8 MB, free: 48 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.1275, allocations: 0.7007 MB / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006836/0.1282, allocations: 434.5 kB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006614/0.1288, allocations: 286.9 kB / 466.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006836/0.1295, allocations: 294.7 kB / 466.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.1297, allocations: 48 kB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003918/0.1301, allocations: 91.97 kB / 466.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002332/0.1304, allocations: 147.5 kB / 466.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004933/0.1309, allocations: 270.7 kB / 467.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009982/0.1319, allocations: 0.6385 MB / 467.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.1319, allocations: 0 / 467.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1319, allocations: 8 kB / 467.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.607e-05/0.132, allocations: 0 / 467.7 MB, free: 13.15 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001948/0.1339, allocations: 0.8378 MB / 468.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.134, allocations: 15.89 kB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.1341, allocations: 78.66 kB / 468.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.1342, allocations: 64.17 kB / 468.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008022/0.135, allocations: 462.1 kB / 469.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.1351, allocations: 25 kB / 469.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.026e-05/0.1352, allocations: 36 kB / 469.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006789/0.1359, allocations: 461.1 kB / 469.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.1359, allocations: 3.938 kB / 469.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.727e-05/0.1359, allocations: 16 kB / 469.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.136, allocations: 8 kB / 469.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004646/0.1364, allocations: 282.3 kB / 470 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.1388, allocations: 1.866 MB / 471.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006263/0.1395, allocations: 247.7 kB / 472.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.1396, allocations: 87.05 kB / 472.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/0.1397, allocations: 12.08 kB / 472.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.1399, allocations: 176.5 kB / 472.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.174e-06/0.14, allocations: 0 / 472.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001877/0.1418, allocations: 0.9146 MB / 473.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.022e-05/0.1419, allocations: 136.5 kB / 473.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005047/0.1425, allocations: 394 kB / 473.8 MB, free: 6.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.1425, allocations: 29.7 kB / 473.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.1427, allocations: 267.7 kB / 474.1 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.993e-05/0.1428, allocations: 102.6 kB / 474.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.1429, allocations: 73.59 kB / 474.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1431, allocations: 346.8 kB / 474.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1433, allocations: 87.91 kB / 474.7 MB, free: 5.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.1435, allocations: 212.2 kB / 474.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004149/0.1439, allocations: 315.9 kB / 475.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.1439, allocations: 4 kB / 475.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000848/0.1448, allocations: 425.9 kB / 475.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1448, allocations: 6.375 kB / 475.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1448, allocations: 11.98 kB / 475.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004296/0.1453, allocations: 88.77 kB / 475.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.1455, allocations: 71.84 kB / 475.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002522/0.148, allocations: 2.018 MB / 477.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.1483, allocations: 20 kB / 477.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.1484, allocations: 19.92 kB / 477.8 MB, free: 2.344 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002294/0.1486, allocations: 201.7 kB / 478 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.703e-05/0.1487, allocations: 43.52 kB / 478.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005693/0.1492, allocations: 294 kB / 478.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.1493, allocations: 4 kB / 478.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1493, allocations: 0 / 478.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1493, allocations: 4 kB / 478.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.1504, allocations: 0.7764 MB / 479.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1504, allocations: 0 / 479.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.1506, allocations: 39.98 kB / 479.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002243/0.1509, allocations: 52.8 kB / 479.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.1509, allocations: 11.94 kB / 479.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/0.1526, allocations: 1.539 MB / 480.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.1526, allocations: 11.97 kB / 480.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008419/0.1534, allocations: 0.4914 MB / 481.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.1536, allocations: 136.6 kB / 481.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.096e-05/0.1537, allocations: 8 kB / 481.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.154, allocations: 12 kB / 481.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.589e-05/0.1541, allocations: 23.97 kB / 481.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.1541, allocations: 11.92 kB / 481.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004519/0.1546, allocations: 283.1 kB / 481.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1546, allocations: 0 / 481.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006356/0.1553, allocations: 108 kB / 481.9 MB, free: 14.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001892/0.1572, allocations: 1.323 MB / 483.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.1582, allocations: 415.6 kB / 483.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.1582, allocations: 4.188 kB / 483.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004422/0.1587, allocations: 246.4 kB / 483.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007729/0.1594, allocations: 121.5 kB / 484 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005601/0.1651, allocations: 4.089 MB / 488 MB, free: 7.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.1655, allocations: 0.8543 MB / 488.9 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002636/0.1657, allocations: 63.36 kB / 489 MB, free: 6.812 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.1659, allocations: 167.3 kB / 489.1 MB, free: 6.648 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1659, allocations: 0 / 489.1 MB, free: 6.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04964/0.2156, allocations: 10.73 MB / 499.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.27, allocations: 0 / 499.9 MB, free: 12.09 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)