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.001227/0.00123, allocations: 113.3 kB / 16.63 MB, free: 6.812 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.001155/0.001155, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.22/1.22, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1689/0.1689, allocations: 38.01 MB / 329.4 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 61.31 kB / 398.4 MB, free: 34.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.09905, allocations: 58.06 MB / 456.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007111/0.1062, allocations: 6.327 MB / 462.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003384/0.1096, allocations: 2.302 MB / 465.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005396/0.1102, allocations: 31.81 kB / 465.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005476/0.1107, allocations: 147.2 kB / 465.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.1118, allocations: 382.1 kB / 465.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.1125, allocations: 222.6 kB / 465.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.1136, allocations: 0.8447 MB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005817/0.1142, allocations: 0.4928 MB / 467.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005184/0.1147, allocations: 342.6 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004511/0.1152, allocations: 358.6 kB / 467.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.398e-05/0.1153, allocations: 56 kB / 467.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.1155, allocations: 99.97 kB / 468 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.1157, allocations: 187.4 kB / 468.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002976/0.116, allocations: 306.5 kB / 468.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.1167, allocations: 0.7204 MB / 469.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.1167, allocations: 7.984 kB / 469.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1167, allocations: 0 / 469.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.1167, allocations: 0 / 469.2 MB, free: 11.46 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.001586/0.1183, allocations: 0.8901 MB / 470.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.1184, allocations: 15.89 kB / 470.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.1185, allocations: 90.62 kB / 470.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.1186, allocations: 64.19 kB / 470.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008385/0.1195, allocations: 0.4901 MB / 470.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/0.1195, allocations: 40.98 kB / 470.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.1196, allocations: 43.98 kB / 470.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008/0.1205, allocations: 0.5173 MB / 471.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.1205, allocations: 4 kB / 471.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.391e-05/0.1205, allocations: 16 kB / 471.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.441e-05/0.1206, allocations: 16.94 kB / 471.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005435/0.1212, allocations: 343.6 kB / 471.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.1236, allocations: 2.07 MB / 473.8 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004006/0.1241, allocations: 238.9 kB / 474 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.1242, allocations: 85.25 kB / 474.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.1242, allocations: 7.984 kB / 474.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000256/0.1245, allocations: 176.5 kB / 474.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.813e-06/0.1245, allocations: 0 / 474.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001686/0.1262, allocations: 0.9169 MB / 475.2 MB, free: 5.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.1263, allocations: 136.5 kB / 475.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004409/0.1267, allocations: 422 kB / 475.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.1268, allocations: 29.7 kB / 475.8 MB, free: 4.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.1269, allocations: 299.6 kB / 476.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/0.127, allocations: 90.73 kB / 476.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.1271, allocations: 74.05 kB / 476.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1272, allocations: 362.7 kB / 476.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.1274, allocations: 88.83 kB / 476.7 MB, free: 3.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.1276, allocations: 217.8 kB / 476.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.128, allocations: 325.7 kB / 477.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.128, allocations: 0 / 477.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007967/0.1288, allocations: 441.3 kB / 477.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1289, allocations: 4 kB / 477.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.1289, allocations: 8 kB / 477.7 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003997/0.1293, allocations: 101.2 kB / 477.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.1295, allocations: 67.91 kB / 477.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00189/0.1314, allocations: 1.825 MB / 479.7 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.1317, allocations: 27.92 kB / 479.7 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.294e-05/0.1318, allocations: 16 kB / 479.7 MB, free: 280 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.0002074/0.132, allocations: 213.7 kB / 479.9 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.266e-05/0.1321, allocations: 51.38 kB / 480 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000532/0.1326, allocations: 280.5 kB / 480.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1326, allocations: 4 kB / 480.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1326, allocations: 4 kB / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1326, allocations: 0 / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.1337, allocations: 0.78 MB / 481 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.1337, allocations: 3.938 kB / 481 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.134, allocations: 51.91 kB / 481.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000197/0.1342, allocations: 48.81 kB / 481.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.1342, allocations: 7.984 kB / 481.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.1354, allocations: 1.547 MB / 482.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1354, allocations: 0 / 482.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006628/0.1361, allocations: 481.9 kB / 483.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.1362, allocations: 136.7 kB / 483.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.323e-05/0.1363, allocations: 8.141 kB / 483.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.1365, allocations: 15.98 kB / 483.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.778e-05/0.1366, allocations: 19.95 kB / 483.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.1366, allocations: 12 kB / 483.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000291/0.1369, allocations: 299.1 kB / 483.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1369, allocations: 0 / 483.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004541/0.1374, allocations: 112 kB / 483.7 MB, free: 11.97 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.001611/0.139, allocations: 1.3 MB / 485 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007331/0.1397, allocations: 406.2 kB / 485.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1398, allocations: 1.125 kB / 485.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.1401, allocations: 242.2 kB / 485.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.1408, allocations: 124.8 kB / 485.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005451/0.1463, allocations: 4.468 MB / 490.3 MB, free: 5.324 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.1467, allocations: 0.8777 MB / 491.1 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.147, allocations: 68.22 kB / 491.2 MB, free: 4.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.1472, allocations: 179.4 kB / 491.4 MB, free: 4.18 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1472, allocations: 3.938 kB / 491.4 MB, free: 4.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.36/1.508, allocations: 11.13 MB / 0.4907 GB, free: 9.262 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002679/1.508, allocations: 282.4 kB / 0.491 GB, free: 8.879 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.571/4.079, allocations: 3.938 kB / 0.491 GB, free: 8.875 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)