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.001253/0.001253, allocations: 110.9 kB / 16.63 MB, free: 6.953 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.00138/0.00138, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.32/1.32, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1864/0.1864, allocations: 38.02 MB / 329.4 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 62.25 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1053, allocations: 58.06 MB / 456.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008676/0.114, allocations: 5.8 MB / 462.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003555/0.1176, allocations: 2.166 MB / 464.4 MB, free: 300 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006145/0.1182, allocations: 35.75 kB / 464.5 MB, free: 264 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006576/0.1189, allocations: 119.3 kB / 464.6 MB, free: 144 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00132/0.1203, allocations: 330.4 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000653/0.1209, allocations: 187.9 kB / 465.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.1222, allocations: 0.7006 MB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007431/0.1229, allocations: 438.5 kB / 466.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000775/0.1237, allocations: 294.8 kB / 466.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000696/0.1244, allocations: 298.8 kB / 466.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001456/0.1246, allocations: 48 kB / 466.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003649/0.125, allocations: 95.97 kB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002313/0.1252, allocations: 147.5 kB / 467.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000373/0.1256, allocations: 270.7 kB / 467.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007311/0.1263, allocations: 0.6425 MB / 468 MB, free: 12.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1263, allocations: 0 / 468 MB, free: 12.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1264, allocations: 0 / 468 MB, free: 12.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.1264, allocations: 0 / 468 MB, free: 12.72 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.001833/0.1282, allocations: 0.8389 MB / 468.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.1283, allocations: 15.89 kB / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.1284, allocations: 78.7 kB / 468.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.1286, allocations: 56.28 kB / 469 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008443/0.1294, allocations: 466 kB / 469.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.1295, allocations: 29 kB / 469.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.21e-05/0.1295, allocations: 36 kB / 469.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.1303, allocations: 461.1 kB / 469.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.1303, allocations: 0 / 469.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.1303, allocations: 16 kB / 469.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.1303, allocations: 8 kB / 470 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.1308, allocations: 282.3 kB / 470.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.1331, allocations: 1.87 MB / 472.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005133/0.1336, allocations: 247.7 kB / 472.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.1338, allocations: 88.73 kB / 472.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.1338, allocations: 7.938 kB / 472.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000256/0.1341, allocations: 180.5 kB / 472.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.1341, allocations: 3.938 kB / 472.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001783/0.1359, allocations: 0.9083 MB / 473.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.543e-05/0.136, allocations: 128.8 kB / 473.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004942/0.1365, allocations: 405.9 kB / 474 MB, free: 6.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1366, allocations: 29.7 kB / 474.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1367, allocations: 263.7 kB / 474.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.782e-05/0.1368, allocations: 94.8 kB / 474.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.1369, allocations: 77.59 kB / 474.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1371, allocations: 346.8 kB / 474.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.1372, allocations: 87.91 kB / 474.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.1375, allocations: 214.9 kB / 475.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.1379, allocations: 323.8 kB / 475.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1379, allocations: 4 kB / 475.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008522/0.1388, allocations: 425.6 kB / 475.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1388, allocations: 6.344 kB / 475.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.1388, allocations: 4 kB / 475.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004369/0.1392, allocations: 97.06 kB / 476 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.1395, allocations: 63.91 kB / 476 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.142, allocations: 2.021 MB / 478.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.1422, allocations: 20.06 kB / 478.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/0.1423, allocations: 23.92 kB / 478.1 MB, free: 1.902 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.0002213/0.1425, allocations: 197.7 kB / 478.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.515e-05/0.1426, allocations: 43.44 kB / 478.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005652/0.1432, allocations: 290 kB / 478.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1432, allocations: 4 kB / 478.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1432, allocations: 4 kB / 478.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1432, allocations: 4 kB / 478.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.1443, allocations: 0.7649 MB / 479.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1443, allocations: 4 kB / 479.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.1445, allocations: 39.92 kB / 479.4 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002048/0.1447, allocations: 56.8 kB / 479.5 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.1448, allocations: 8 kB / 479.5 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.1461, allocations: 1.547 MB / 481 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.1461, allocations: 4.031 kB / 481.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007756/0.1469, allocations: 0.503 MB / 481.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.1471, allocations: 124.7 kB / 481.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.696e-05/0.1471, allocations: 8 kB / 481.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.1474, allocations: 15.98 kB / 481.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.783e-05/0.1474, allocations: 23.91 kB / 481.7 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.1475, allocations: 15.94 kB / 481.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003093/0.1478, allocations: 283.1 kB / 482 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1478, allocations: 0 / 482 MB, free: 13.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005372/0.1483, allocations: 104 kB / 482.1 MB, free: 13.61 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.001859/0.1502, allocations: 1.316 MB / 483.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008993/0.1511, allocations: 423.1 kB / 483.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.1511, allocations: 0 / 483.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000386/0.1515, allocations: 250.4 kB / 484.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007124/0.1523, allocations: 129.6 kB / 484.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005851/0.1581, allocations: 4.236 MB / 488.5 MB, free: 7.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004401/0.1586, allocations: 0.8582 MB / 489.3 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002854/0.1589, allocations: 75.28 kB / 489.4 MB, free: 6.207 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002233/0.1591, allocations: 155.4 kB / 489.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1591, allocations: 0 / 489.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03361/0.1928, allocations: 10.6 MB / 0.4884 GB, free: 11.67 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002692/0.1931, allocations: 292.8 kB / 0.4887 GB, free: 11.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/2.25, allocations: 3.938 kB / 0.4887 GB, free: 11.28 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)