Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_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.000842/0.0008421, allocations: 90 kB / 16.31 MB, free: 6.461 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.0008879/0.0008879, allocations: 180.6 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.4 MB / 223.4 MB, free: 5.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3539/0.3539, allocations: 38.05 MB / 309.7 MB, free: 8.832 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005252/0.0005253, allocations: 16 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1317, allocations: 56.35 MB / 433 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006593/0.1384, allocations: 5.121 MB / 438.1 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003518/0.1419, allocations: 2.008 MB / 440.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004154/0.1424, allocations: 27.81 kB / 440.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000481/0.1429, allocations: 139.1 kB / 440.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009495/0.1438, allocations: 350 kB / 440.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005769/0.1444, allocations: 183.6 kB / 440.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009308/0.1454, allocations: 0.7199 MB / 441.5 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004632/0.1458, allocations: 317.1 kB / 441.8 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003831/0.1462, allocations: 238.9 kB / 442 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.1466, allocations: 266.9 kB / 442.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.99e-05/0.1467, allocations: 24 kB / 442.3 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.1469, allocations: 63.91 kB / 442.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.147, allocations: 115.6 kB / 442.5 MB, free: 13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.1471, allocations: 125.4 kB / 442.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004984/0.1476, allocations: 0.4947 MB / 443.1 MB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1477, allocations: 0 / 443.1 MB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1477, allocations: 0 / 443.1 MB, free: 12.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1477, allocations: 0 / 443.1 MB, free: 12.37 MB / 382.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.001385/0.1491, allocations: 0.7572 MB / 443.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1491, allocations: 12.03 kB / 443.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.1492, allocations: 82.47 kB / 444 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.166e-05/0.1493, allocations: 55.34 kB / 444 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006806/0.15, allocations: 445.9 kB / 444.5 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.1501, allocations: 29 kB / 444.5 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.775e-05/0.1501, allocations: 43.91 kB / 444.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.1508, allocations: 461.1 kB / 445 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.1509, allocations: 7.922 kB / 445 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.743e-05/0.1509, allocations: 12 kB / 445 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1509, allocations: 8 kB / 445 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.1514, allocations: 278.3 kB / 445.3 MB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.1536, allocations: 1.863 MB / 447.1 MB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.1541, allocations: 248.2 kB / 447.4 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.1542, allocations: 90.94 kB / 447.5 MB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.1542, allocations: 8.188 kB / 447.5 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.1545, allocations: 166.6 kB / 447.6 MB, free: 7.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 2.424e-06/0.1545, allocations: 0 / 447.6 MB, free: 7.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001566/0.1561, allocations: 0.9052 MB / 448.5 MB, free: 6.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.1562, allocations: 136.5 kB / 448.7 MB, free: 6.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.1567, allocations: 405.8 kB / 449.1 MB, free: 5.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.1567, allocations: 29.7 kB / 449.1 MB, free: 5.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.1569, allocations: 271.8 kB / 449.4 MB, free: 5.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.612e-05/0.157, allocations: 86.72 kB / 449.5 MB, free: 5.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.611e-05/0.157, allocations: 4 kB / 449.5 MB, free: 5.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1572, allocations: 366.8 kB / 449.8 MB, free: 5.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.1573, allocations: 75.95 kB / 449.9 MB, free: 5.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.1576, allocations: 220.2 kB / 450.1 MB, free: 4.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.1578, allocations: 108 kB / 450.2 MB, free: 4.781 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1578, allocations: 4 kB / 450.2 MB, free: 4.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000787/0.1586, allocations: 429.3 kB / 450.6 MB, free: 4.348 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1586, allocations: 4 kB / 450.6 MB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1586, allocations: 4.531 kB / 450.6 MB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003837/0.159, allocations: 96.77 kB / 450.7 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.1593, allocations: 67.84 kB / 450.8 MB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.1616, allocations: 1.827 MB / 452.6 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.1618, allocations: 27.92 kB / 452.7 MB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.1619, allocations: 16 kB / 452.7 MB, free: 2.172 MB / 382.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.0002358/0.1621, allocations: 189.8 kB / 452.9 MB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.1622, allocations: 43.53 kB / 452.9 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000548/0.1628, allocations: 298 kB / 453.2 MB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1628, allocations: 4 kB / 453.2 MB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1628, allocations: 7.984 kB / 453.2 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1628, allocations: 7.938 kB / 453.2 MB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009833/0.1638, allocations: 0.7645 MB / 454 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1638, allocations: 4 kB / 454 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002176/0.164, allocations: 39.98 kB / 454 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.1642, allocations: 52.8 kB / 454.1 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.1643, allocations: 4 kB / 454.1 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2729/0.4371, allocations: 1.428 MB / 455.5 MB, free: 50.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4372, allocations: 2.969 kB / 455.5 MB, free: 50.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008854/0.4381, allocations: 0.4917 MB / 456 MB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.4383, allocations: 135.8 kB / 456.1 MB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.4383, allocations: 7.219 kB / 456.1 MB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.4386, allocations: 15.12 kB / 456.1 MB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.123e-05/0.4386, allocations: 23.45 kB / 456.2 MB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.4387, allocations: 13.25 kB / 456.2 MB, free: 49.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003006/0.439, allocations: 281.8 kB / 456.5 MB, free: 49.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.439, allocations: 1.656 kB / 456.5 MB, free: 49.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005632/0.4396, allocations: 101.4 kB / 456.6 MB, free: 49.84 MB / 382.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.001586/0.4411, allocations: 1.321 MB / 457.9 MB, free: 49.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007786/0.4419, allocations: 392.5 kB / 458.3 MB, free: 48.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.442, allocations: 6.406 kB / 458.3 MB, free: 48.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003214/0.4423, allocations: 246.8 kB / 458.5 MB, free: 48.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006412/0.4429, allocations: 128.6 kB / 458.6 MB, free: 48.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.4467, allocations: 2.885 MB / 461.5 MB, free: 47.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.447, allocations: 0.8531 MB / 462.4 MB, free: 46.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002366/0.4473, allocations: 65.69 kB / 462.4 MB, free: 46.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.4475, allocations: 160.5 kB / 462.6 MB, free: 46.93 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4475, allocations: 0 / 462.6 MB, free: 46.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.4716, allocations: 9.921 MB / 472.5 MB, free: 45.96 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.4718, allocations: 256.6 kB / 472.8 MB, free: 45.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.095/2.567, allocations: 0 / 472.8 MB, free: 45.63 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) Environment - environmentSimulation: