Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001137/0.001137, allocations: 110.1 kB / 16.92 MB, free: 6.145 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.001054/0.001054, allocations: 191.3 kB / 17.85 MB, free: 5.309 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.348/1.348, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1749/0.1749, allocations: 38.01 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 62.31 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 58.07 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.009259/0.111, allocations: 5.685 MB / 462.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.1147, allocations: 2.126 MB / 464.8 MB, free: 120 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005257/0.1153, allocations: 19.94 kB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000776/0.1161, allocations: 170.7 kB / 465 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001479/0.1176, allocations: 421.6 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007769/0.1184, allocations: 251.5 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.1197, allocations: 0.837 MB / 466.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006872/0.1204, allocations: 0.4967 MB / 467 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006079/0.121, allocations: 346.7 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005518/0.1216, allocations: 342.6 kB / 467.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.1217, allocations: 52 kB / 467.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002576/0.122, allocations: 99.98 kB / 467.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002251/0.1222, allocations: 187.4 kB / 468 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003422/0.1226, allocations: 302.5 kB / 468.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008396/0.1234, allocations: 0.7204 MB / 469 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1234, allocations: 0 / 469 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1234, allocations: 0 / 469 MB, free: 11.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.455e-05/0.1235, allocations: 4 kB / 469 MB, free: 11.9 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002097/0.1256, allocations: 0.9057 MB / 469.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1256, allocations: 15.89 kB / 469.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.1257, allocations: 78.72 kB / 470 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.1259, allocations: 68.19 kB / 470 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009124/0.1268, allocations: 0.4902 MB / 470.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.1269, allocations: 33 kB / 470.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.913e-05/0.127, allocations: 43.91 kB / 470.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009092/0.1279, allocations: 0.5212 MB / 471.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.1279, allocations: 3.938 kB / 471.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.246e-05/0.128, allocations: 16 kB / 471.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.235e-05/0.128, allocations: 17 kB / 471.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005381/0.1286, allocations: 347.6 kB / 471.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.1311, allocations: 2.066 MB / 473.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004175/0.1315, allocations: 235.6 kB / 473.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.1317, allocations: 81.19 kB / 473.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.1317, allocations: 11.94 kB / 473.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.132, allocations: 172.5 kB / 474.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.132, allocations: 0 / 474.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00159/0.1336, allocations: 0.9136 MB / 475 MB, free: 5.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.1337, allocations: 132.5 kB / 475.1 MB, free: 5.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.1341, allocations: 429.8 kB / 475.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.1342, allocations: 29.7 kB / 475.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.1344, allocations: 295.6 kB / 475.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.006e-05/0.1345, allocations: 95.02 kB / 475.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.1346, allocations: 78.05 kB / 476 MB, free: 4.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1347, allocations: 366.7 kB / 476.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.1349, allocations: 84.83 kB / 476.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.1351, allocations: 221.8 kB / 476.7 MB, free: 3.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003983/0.1355, allocations: 313.7 kB / 477 MB, free: 3.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1355, allocations: 4 kB / 477 MB, free: 3.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008317/0.1364, allocations: 449.8 kB / 477.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1364, allocations: 12.03 kB / 477.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1364, allocations: 4 kB / 477.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/0.1368, allocations: 96.75 kB / 477.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.1371, allocations: 67.91 kB / 477.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/0.1392, allocations: 1.827 MB / 479.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.1395, allocations: 28.05 kB / 479.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.1395, allocations: 12 kB / 479.5 MB, free: 0.7031 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0002594/0.1398, allocations: 205.7 kB / 479.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.284e-05/0.1399, allocations: 51.31 kB / 479.7 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005646/0.1405, allocations: 282.1 kB / 480 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.1405, allocations: 4 kB / 480 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1405, allocations: 7.938 kB / 480 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.1405, allocations: 0 / 480 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.1416, allocations: 0.7746 MB / 480.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.1417, allocations: 7.938 kB / 480.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002556/0.1419, allocations: 51.91 kB / 480.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002108/0.1421, allocations: 48.81 kB / 480.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.1422, allocations: 4 kB / 480.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.1435, allocations: 1.547 MB / 482.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1435, allocations: 0 / 482.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008011/0.1443, allocations: 482.5 kB / 482.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.1445, allocations: 140.5 kB / 483 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.064e-05/0.1446, allocations: 8 kB / 483 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.1448, allocations: 11.98 kB / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.285e-05/0.1449, allocations: 19.97 kB / 483.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.1449, allocations: 8 kB / 483.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003812/0.1453, allocations: 303.1 kB / 483.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1453, allocations: 0 / 483.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005465/0.1459, allocations: 112 kB / 483.5 MB, free: 12.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.002061/0.148, allocations: 1.306 MB / 484.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009299/0.1489, allocations: 407.1 kB / 485.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1489, allocations: 0 / 485.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003812/0.1493, allocations: 242 kB / 485.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007402/0.1501, allocations: 140.8 kB / 485.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005707/0.1558, allocations: 4.29 MB / 489.9 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.1563, allocations: 0.8777 MB / 490.7 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002709/0.1565, allocations: 68.23 kB / 490.8 MB, free: 4.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.1568, allocations: 179.3 kB / 491 MB, free: 4.785 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1568, allocations: 0 / 491 MB, free: 4.785 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03672/0.1935, allocations: 11.27 MB / 0.4905 GB, free: 9.695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.35, allocations: 8.062 kB / 0.4905 GB, free: 9.688 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)