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.0007841/0.0007842, allocations: 91.44 kB / 16.31 MB, free: 6.008 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.00086/0.00086, allocations: 182.8 kB / 17.21 MB, free: 5.902 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.387/1.387, allocations: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1823/0.1823, allocations: 38.1 MB / 330.4 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004649/0.000465, allocations: 12 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1401, allocations: 59.18 MB / 459.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007398/0.1475, allocations: 5.128 MB / 464.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004095/0.1517, allocations: 2.042 MB / 466.5 MB, free: 108 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000785/0.1525, allocations: 27.81 kB / 466.5 MB, free: 80 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007233/0.1532, allocations: 135.1 kB / 466.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001449/0.1547, allocations: 350 kB / 467 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000791/0.1555, allocations: 195.7 kB / 467.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001225/0.1568, allocations: 0.7161 MB / 467.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005338/0.1573, allocations: 309.4 kB / 468.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004764/0.1578, allocations: 250.9 kB / 468.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004092/0.1582, allocations: 262.9 kB / 468.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.723e-05/0.1583, allocations: 24 kB / 468.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.1585, allocations: 71.91 kB / 468.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.1587, allocations: 115.6 kB / 468.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.1588, allocations: 117.5 kB / 469 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000552/0.1594, allocations: 0.4986 MB / 469.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1594, allocations: 4 kB / 469.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1594, allocations: 0 / 469.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.198e-06/0.1594, allocations: 0 / 469.5 MB, free: 13.05 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.001609/0.161, allocations: 0.7533 MB / 470.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.1611, allocations: 12.03 kB / 470.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.1613, allocations: 78.47 kB / 470.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.1614, allocations: 55.34 kB / 470.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007923/0.1622, allocations: 453.8 kB / 470.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.1622, allocations: 25 kB / 470.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.421e-05/0.1623, allocations: 43.95 kB / 470.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007352/0.163, allocations: 449.1 kB / 471.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.1631, allocations: 3.938 kB / 471.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.796e-05/0.1631, allocations: 16 kB / 471.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.1631, allocations: 12 kB / 471.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004814/0.1636, allocations: 278.3 kB / 471.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002622/0.1663, allocations: 1.867 MB / 473.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.1669, allocations: 252.1 kB / 473.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.1671, allocations: 83.05 kB / 473.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.1672, allocations: 8.172 kB / 473.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003598/0.1675, allocations: 174.4 kB / 474.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.076e-06/0.1675, allocations: 0 / 474.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.002288/0.1698, allocations: 0.9065 MB / 475 MB, free: 7.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.17, allocations: 140.7 kB / 475.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005598/0.1705, allocations: 405.8 kB / 475.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.1706, allocations: 33.7 kB / 475.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.1708, allocations: 255.7 kB / 475.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.1709, allocations: 90.86 kB / 475.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.198e-05/0.171, allocations: 12 kB / 475.9 MB, free: 6.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.1712, allocations: 354.7 kB / 476.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.1713, allocations: 83.92 kB / 476.3 MB, free: 5.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.1716, allocations: 212.2 kB / 476.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.1719, allocations: 120.8 kB / 476.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1719, allocations: 0 / 476.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009511/0.1728, allocations: 429.3 kB / 477.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.1729, allocations: 4 kB / 477.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/0.1729, allocations: 8 kB / 477.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004599/0.1734, allocations: 93.17 kB / 477.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/0.1736, allocations: 71.84 kB / 477.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.1764, allocations: 1.815 MB / 479 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/0.1768, allocations: 27.98 kB / 479.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.1768, allocations: 16 kB / 479.1 MB, free: 2.863 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002715/0.1771, allocations: 189 kB / 479.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.1772, allocations: 47.44 kB / 479.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006202/0.1778, allocations: 294 kB / 479.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1778, allocations: 8 kB / 479.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.1779, allocations: 4 kB / 479.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.1779, allocations: 3.984 kB / 479.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.1792, allocations: 0.7687 MB / 480.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.1792, allocations: 0 / 480.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/0.1794, allocations: 43.97 kB / 480.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002096/0.1796, allocations: 48.81 kB / 480.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.1797, allocations: 11.98 kB / 480.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.181, allocations: 1.433 MB / 481.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.181, allocations: 3.953 kB / 481.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007487/0.1817, allocations: 0.4954 MB / 482.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.1819, allocations: 136.7 kB / 482.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.182, allocations: 7.953 kB / 482.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.1822, allocations: 15.98 kB / 482.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.1823, allocations: 27.91 kB / 482.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.1823, allocations: 4 kB / 482.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003364/0.1827, allocations: 283.1 kB / 482.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1827, allocations: 3.938 kB / 482.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005892/0.1833, allocations: 104 kB / 483 MB, free: 14.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001844/0.1851, allocations: 1.326 MB / 484.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008653/0.186, allocations: 399.1 kB / 484.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.186, allocations: 192 / 484.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003845/0.1864, allocations: 242.5 kB / 485 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006959/0.1871, allocations: 125.5 kB / 485.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00439/0.1915, allocations: 2.887 MB / 488 MB, free: 9.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.192, allocations: 0.8545 MB / 488.8 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002935/0.1923, allocations: 71.34 kB / 488.9 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.1925, allocations: 155.4 kB / 489 MB, free: 8.621 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1925, allocations: 3.938 kB / 489 MB, free: 8.617 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.2212, allocations: 9.93 MB / 499 MB, free: 14.94 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002824/0.2215, allocations: 264.2 kB / 499.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.072/2.294, allocations: 3.938 kB / 499.2 MB, free: 14.58 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat does not exist to compare? outputFormat=mat