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.001145/0.001145, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.001118/0.001118, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.232/1.232, allocations: 222.9 MB / 241.1 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.1618/0.1618, allocations: 38.03 MB / 329.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 64.61 kB / 398.2 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09534, allocations: 58.05 MB / 456.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007895/0.1033, allocations: 6.319 MB / 462.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003793/0.1071, allocations: 2.318 MB / 464.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005469/0.1077, allocations: 31.81 kB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006262/0.1084, allocations: 151.2 kB / 465.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009774/0.1094, allocations: 382.1 kB / 465.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005927/0.11, allocations: 218.7 kB / 465.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.1111, allocations: 1.067 MB / 466.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005226/0.1117, allocations: 423 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000431/0.1121, allocations: 302.6 kB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004323/0.1126, allocations: 354.5 kB / 467.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-05/0.1126, allocations: 36 kB / 467.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.1129, allocations: 79.97 kB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.113, allocations: 155.5 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.1133, allocations: 290.5 kB / 468.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006457/0.114, allocations: 0.7008 MB / 469 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.114, allocations: 4 kB / 469 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.114, allocations: 0 / 469 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.114, allocations: 0 / 469 MB, free: 11.6 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.001553/0.1156, allocations: 0.9057 MB / 469.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1156, allocations: 8.031 kB / 469.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1157, allocations: 82.72 kB / 470 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.1159, allocations: 68.19 kB / 470.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000749/0.1166, allocations: 0.494 MB / 470.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.1167, allocations: 33 kB / 470.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.1168, allocations: 48 kB / 470.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007427/0.1175, allocations: 0.5173 MB / 471.2 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.1176, allocations: 0 / 471.2 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.1176, allocations: 16 kB / 471.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.3e-05/0.1177, allocations: 17 kB / 471.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005446/0.1182, allocations: 343.6 kB / 471.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.1207, allocations: 2.07 MB / 473.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.1211, allocations: 231.6 kB / 473.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.1213, allocations: 89.02 kB / 473.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.1213, allocations: 0 / 473.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.1215, allocations: 168.6 kB / 474.1 MB, free: 6.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.212e-06/0.1216, allocations: 0 / 474.1 MB, free: 6.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001674/0.1232, allocations: 0.9252 MB / 475 MB, free: 5.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.927e-05/0.1233, allocations: 140.5 kB / 475.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.1238, allocations: 422 kB / 475.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.907e-05/0.1238, allocations: 33.7 kB / 475.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.124, allocations: 287.6 kB / 475.9 MB, free: 4.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.411e-05/0.1241, allocations: 86.75 kB / 476 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.1242, allocations: 78.03 kB / 476 MB, free: 4.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1244, allocations: 366.7 kB / 476.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.1246, allocations: 80.84 kB / 476.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002389/0.1248, allocations: 229.8 kB / 476.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.1252, allocations: 313.7 kB / 477 MB, free: 3.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1252, allocations: 4 kB / 477 MB, free: 3.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007896/0.126, allocations: 449.2 kB / 477.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1261, allocations: 10.34 kB / 477.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1261, allocations: 4.562 kB / 477.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004059/0.1265, allocations: 100.8 kB / 477.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.1268, allocations: 75.83 kB / 477.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.1286, allocations: 1.703 MB / 479.3 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.1289, allocations: 20.06 kB / 479.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/0.1289, allocations: 23.98 kB / 479.4 MB, free: 0.5391 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.0002317/0.1292, allocations: 205.6 kB / 479.6 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.1292, allocations: 43.44 kB / 479.6 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000556/0.1298, allocations: 288.5 kB / 479.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.1298, allocations: 4 kB / 479.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.1298, allocations: 4 kB / 479.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1298, allocations: 4 kB / 479.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.1309, allocations: 0.7722 MB / 480.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1309, allocations: 0 / 480.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.1312, allocations: 43.97 kB / 480.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002057/0.1314, allocations: 52.81 kB / 480.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.1315, allocations: 7.938 kB / 480.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.1327, allocations: 1.441 MB / 482.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1327, allocations: 0 / 482.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006837/0.1334, allocations: 477.9 kB / 482.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.1335, allocations: 136.6 kB / 482.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.264e-05/0.1336, allocations: 12.06 kB / 482.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.1338, allocations: 12.12 kB / 482.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.1339, allocations: 27.84 kB / 482.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.1339, allocations: 7.984 kB / 482.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003061/0.1342, allocations: 299.1 kB / 483.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1342, allocations: 0 / 483.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000479/0.1347, allocations: 119.9 kB / 483.3 MB, free: 12.36 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.001793/0.1365, allocations: 1.299 MB / 484.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007663/0.1373, allocations: 401.5 kB / 485 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1373, allocations: 0 / 485 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.1376, allocations: 235.7 kB / 485.2 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006957/0.1384, allocations: 122 kB / 485.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00587/0.1442, allocations: 4.463 MB / 489.8 MB, free: 5.738 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.1447, allocations: 0.874 MB / 490.7 MB, free: 4.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002611/0.145, allocations: 68.22 kB / 490.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.1453, allocations: 171.4 kB / 490.9 MB, free: 4.602 MB / 366.1 MB Notification: Performance of SimCode: time 2.124e-06/0.1453, allocations: 7.938 kB / 490.9 MB, free: 4.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.1699, allocations: 10.84 MB / 0.49 GB, free: 10 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002734/0.1702, allocations: 292.6 kB / 0.4903 GB, free: 9.613 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.975/2.146, allocations: 0 / 0.4903 GB, free: 9.613 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)