Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_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.001501/0.001501, allocations: 114.5 kB / 16.63 MB, free: 6.797 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.00173/0.00173, allocations: 186 kB / 17.55 MB, free: 5.953 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.377/1.377, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1651/0.1651, allocations: 38.04 MB / 329.4 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.00121, allocations: 60.88 kB / 398.4 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1027, allocations: 58.06 MB / 456.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007862/0.1106, allocations: 6.322 MB / 462.8 MB, free: 2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003582/0.1142, allocations: 2.306 MB / 465.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006034/0.1148, allocations: 31.81 kB / 465.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006773/0.1155, allocations: 147.2 kB / 465.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.1167, allocations: 390.1 kB / 465.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005993/0.1173, allocations: 213.8 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.1184, allocations: 0.8447 MB / 466.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006057/0.119, allocations: 0.489 MB / 467.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005929/0.1196, allocations: 354.6 kB / 467.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005602/0.1202, allocations: 354.6 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.1203, allocations: 55.94 kB / 467.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002477/0.1206, allocations: 95.97 kB / 468 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001904/0.1208, allocations: 183.5 kB / 468.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003097/0.1211, allocations: 310.5 kB / 468.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007686/0.1219, allocations: 0.7281 MB / 469.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1219, allocations: 4 kB / 469.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1219, allocations: 0 / 469.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.478e-05/0.1219, allocations: 0 / 469.2 MB, free: 11.51 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.00204/0.124, allocations: 0.894 MB / 470.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.124, allocations: 11.89 kB / 470.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/0.1242, allocations: 86.7 kB / 470.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002146/0.1244, allocations: 60.19 kB / 470.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1254, allocations: 0.4978 MB / 470.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.1255, allocations: 33 kB / 470.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.1256, allocations: 51.97 kB / 470.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008291/0.1264, allocations: 0.5095 MB / 471.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.1265, allocations: 4 kB / 471.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.625e-05/0.1265, allocations: 24 kB / 471.4 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.074e-05/0.1266, allocations: 24.92 kB / 471.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005208/0.1271, allocations: 327.7 kB / 471.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.1297, allocations: 2.078 MB / 473.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.1301, allocations: 238.1 kB / 474.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.1303, allocations: 78.62 kB / 474.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.346e-05/0.1303, allocations: 11.98 kB / 474.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002514/0.1306, allocations: 160.6 kB / 474.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 4.568e-06/0.1306, allocations: 0 / 474.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001655/0.1322, allocations: 0.9244 MB / 475.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/0.1323, allocations: 132.5 kB / 475.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004575/0.1328, allocations: 425.9 kB / 475.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.1328, allocations: 29.7 kB / 475.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.133, allocations: 300 kB / 476.1 MB, free: 4.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.102e-05/0.1331, allocations: 90.75 kB / 476.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.1332, allocations: 74.03 kB / 476.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1333, allocations: 354.7 kB / 476.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.1335, allocations: 92.77 kB / 476.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.1337, allocations: 221.8 kB / 476.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.1341, allocations: 325.7 kB / 477.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1341, allocations: 0 / 477.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008659/0.135, allocations: 441.7 kB / 477.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.1351, allocations: 11.98 kB / 477.7 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1351, allocations: 7.938 kB / 477.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004356/0.1355, allocations: 96.7 kB / 477.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.1358, allocations: 76.09 kB / 477.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002375/0.1382, allocations: 1.819 MB / 479.7 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.1385, allocations: 19.98 kB / 479.7 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.1385, allocations: 23.94 kB / 479.7 MB, free: 336 kB / 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.0002911/0.1388, allocations: 213.7 kB / 479.9 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.861e-05/0.1389, allocations: 51.36 kB / 480 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005777/0.1394, allocations: 276.7 kB / 480.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1395, allocations: 4 kB / 480.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1395, allocations: 4 kB / 480.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.1395, allocations: 3.984 kB / 480.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.1407, allocations: 0.7761 MB / 481 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.1407, allocations: 7.922 kB / 481 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.141, allocations: 47.86 kB / 481.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.1412, allocations: 56.8 kB / 481.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.1412, allocations: 8 kB / 481.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.1426, allocations: 1.535 MB / 482.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1426, allocations: 4.031 kB / 482.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007191/0.1434, allocations: 489.9 kB / 483.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1435, allocations: 132.6 kB / 483.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.483e-05/0.1436, allocations: 4 kB / 483.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.1439, allocations: 12.14 kB / 483.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.144, allocations: 31.95 kB / 483.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.144, allocations: 7.984 kB / 483.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000316/0.1443, allocations: 295.1 kB / 483.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1443, allocations: 0 / 483.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004866/0.1448, allocations: 119.9 kB / 483.7 MB, free: 12.02 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.001937/0.1468, allocations: 1.294 MB / 485 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008543/0.1476, allocations: 418.1 kB / 485.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1476, allocations: 0 / 485.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003782/0.148, allocations: 234.6 kB / 485.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007848/0.1488, allocations: 142.2 kB / 485.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006334/0.1552, allocations: 4.46 MB / 490.3 MB, free: 5.375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.1557, allocations: 0.8816 MB / 491.2 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002728/0.156, allocations: 64.23 kB / 491.2 MB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.1563, allocations: 175.4 kB / 491.4 MB, free: 4.234 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.1563, allocations: 0 / 491.4 MB, free: 4.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.1872, allocations: 11.14 MB / 0.4908 GB, free: 9.328 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002809/0.1875, allocations: 296.6 kB / 0.491 GB, free: 8.938 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.139/2.327, allocations: 0 / 0.491 GB, free: 8.938 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)