Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_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.001146/0.001146, allocations: 108.3 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.001145/0.001145, 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.249/1.249, 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.1655/0.1655, allocations: 38.03 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 59.75 kB / 398.2 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08423, allocations: 58.07 MB / 456.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006413/0.09068, allocations: 5.8 MB / 462.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002837/0.09354, allocations: 2.177 MB / 464.2 MB, free: 460 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002741/0.09383, allocations: 31.81 kB / 464.3 MB, free: 428 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004473/0.09431, allocations: 123.2 kB / 464.4 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006621/0.09498, allocations: 322.4 kB / 464.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.09541, allocations: 201.8 kB / 464.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008094/0.09623, allocations: 0.8252 MB / 465.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.09663, allocations: 361.7 kB / 466.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003222/0.09696, allocations: 258.9 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.0973, allocations: 286.8 kB / 466.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.727e-05/0.09736, allocations: 32 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.09754, allocations: 79.95 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.09767, allocations: 135.5 kB / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002142/0.09789, allocations: 250.7 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005315/0.09843, allocations: 0.623 MB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.09844, allocations: 0 / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09845, allocations: 0 / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.09846, allocations: 0 / 467.7 MB, free: 12.95 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.001436/0.0999, allocations: 0.8544 MB / 468.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.09996, allocations: 8.031 kB / 468.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.992e-05/0.1001, allocations: 78.7 kB / 468.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.482e-05/0.1002, allocations: 52.28 kB / 468.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006615/0.1008, allocations: 466.1 kB / 469.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.1009, allocations: 29 kB / 469.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.1009, allocations: 36 kB / 469.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006726/0.1016, allocations: 457.1 kB / 469.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.1016, allocations: 4 kB / 469.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/0.1017, allocations: 23.92 kB / 469.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1017, allocations: 8 kB / 469.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.1022, allocations: 274.3 kB / 470 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1042, allocations: 1.87 MB / 471.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004603/0.1047, allocations: 251.7 kB / 472.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.1048, allocations: 86.92 kB / 472.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.1048, allocations: 7.938 kB / 472.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002593/0.1051, allocations: 176.6 kB / 472.4 MB, free: 8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1051, allocations: 0 / 472.4 MB, free: 8 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001688/0.1068, allocations: 0.91 MB / 473.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.1069, allocations: 136.8 kB / 473.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004319/0.1073, allocations: 405.9 kB / 473.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.1074, allocations: 33.69 kB / 473.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.1076, allocations: 259.7 kB / 474.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.825e-05/0.1076, allocations: 94.8 kB / 474.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.1078, allocations: 69.59 kB / 474.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1079, allocations: 354.8 kB / 474.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.1081, allocations: 79.91 kB / 474.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002462/0.1083, allocations: 220.2 kB / 474.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004031/0.1087, allocations: 323.8 kB / 475.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1087, allocations: 0 / 475.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008284/0.1096, allocations: 433.5 kB / 475.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1096, allocations: 8 kB / 475.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.1096, allocations: 4 kB / 475.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004347/0.1101, allocations: 85.19 kB / 475.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.1103, allocations: 71.91 kB / 475.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/0.1125, allocations: 1.815 MB / 477.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.1127, allocations: 20.06 kB / 477.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.1128, allocations: 19.98 kB / 477.6 MB, free: 2.332 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.0002253/0.113, allocations: 201.6 kB / 477.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.1131, allocations: 39.53 kB / 477.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005788/0.1137, allocations: 290 kB / 478.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1137, allocations: 8 kB / 478.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.1137, allocations: 3.938 kB / 478.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1137, allocations: 4 kB / 478.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.1148, allocations: 0.7688 MB / 478.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1148, allocations: 4 kB / 478.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.1151, allocations: 39.92 kB / 479 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.1153, allocations: 60.78 kB / 479 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.1153, allocations: 8 kB / 479.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.1166, allocations: 1.437 MB / 480.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1166, allocations: 0 / 480.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007255/0.1173, allocations: 499.2 kB / 481 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.1175, allocations: 144.6 kB / 481.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.346e-05/0.1175, allocations: 11.98 kB / 481.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.1178, allocations: 12 kB / 481.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.1178, allocations: 15.97 kB / 481.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.1179, allocations: 15.98 kB / 481.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003159/0.1182, allocations: 279.1 kB / 481.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1182, allocations: 0 / 481.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005067/0.1187, allocations: 104 kB / 481.5 MB, free: 14.16 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.001718/0.1204, allocations: 1.32 MB / 482.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00083/0.1213, allocations: 395.2 kB / 483.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1213, allocations: 192 / 483.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003995/0.1217, allocations: 254.4 kB / 483.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006738/0.1224, allocations: 125.5 kB / 483.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005222/0.1276, allocations: 4.242 MB / 487.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.1281, allocations: 0.8543 MB / 488.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.1283, allocations: 67.28 kB / 488.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.1285, allocations: 163.4 kB / 488.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1285, allocations: 4 kB / 488.9 MB, free: 6.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.1513, allocations: 10.28 MB / 499.2 MB, free: 12.56 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002497/0.1516, allocations: 280.6 kB / 499.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.063, allocations: 4.062 kB / 499.5 MB, free: 12.18 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)