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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.00161/0.00161, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.696/1.696, allocations: 194.3 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002133/0.002133, allocations: 100.8 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1701/0.1701, allocations: 37.89 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.407e-05/4.417e-05, allocations: 4 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.3751, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5294/0.9046, allocations: 96.39 MB / 0.5344 GB, free: 32.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002136/0.9068, allocations: 0.6929 MB / 0.5351 GB, free: 32.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04013/0.9469, allocations: 14.52 MB / 0.5493 GB, free: 30.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.947, allocations: 0 / 0.5493 GB, free: 30.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.212e-05/0.947, allocations: 15.69 kB / 0.5493 GB, free: 30.66 MB / 378.7 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.001264/0.9483, allocations: 0.7533 MB / 0.55 GB, free: 30.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.9484, allocations: 11.72 kB / 0.55 GB, free: 30.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.876e-05/0.9485, allocations: 74.47 kB / 0.5501 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.898e-05/0.9486, allocations: 58.66 kB / 0.5502 GB, free: 30.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.95, allocations: 0.6911 MB / 0.5508 GB, free: 29.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.95, allocations: 27.41 kB / 0.5509 GB, free: 29.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.9501, allocations: 37.88 kB / 0.5509 GB, free: 29.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006658/0.9508, allocations: 448.7 kB / 0.5513 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.9508, allocations: 7.906 kB / 0.5513 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.271e-05/0.9509, allocations: 18.25 kB / 0.5514 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.9509, allocations: 7.812 kB / 0.5514 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004211/0.9513, allocations: 270.9 kB / 0.5516 GB, free: 29.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.9534, allocations: 1.869 MB / 0.5535 GB, free: 28.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004757/0.9538, allocations: 241 kB / 0.5537 GB, free: 28.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.954, allocations: 91.42 kB / 0.5538 GB, free: 28.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.954, allocations: 4.094 kB / 0.5538 GB, free: 28.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.9543, allocations: 164.3 kB / 0.5539 GB, free: 28.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.452e-06/0.9543, allocations: 4 kB / 0.5539 GB, free: 28.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.001713/0.956, allocations: 1.066 MB / 0.555 GB, free: 27.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.9561, allocations: 132 kB / 0.5551 GB, free: 27.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003353/0.9564, allocations: 337.2 kB / 0.5554 GB, free: 27.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.9565, allocations: 41.3 kB / 0.5555 GB, free: 27.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.9566, allocations: 266.1 kB / 0.5557 GB, free: 27.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.238e-05/0.9567, allocations: 90.89 kB / 0.5558 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.47e-05/0.9567, allocations: 7.281 kB / 0.5558 GB, free: 27.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.9568, allocations: 355.4 kB / 0.5561 GB, free: 26.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.957, allocations: 83.89 kB / 0.5562 GB, free: 26.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.9572, allocations: 213.3 kB / 0.5564 GB, free: 26.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.9575, allocations: 153.3 kB / 0.5566 GB, free: 26.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.9575, allocations: 3.844 kB / 0.5566 GB, free: 26.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007463/0.9582, allocations: 457.8 kB / 0.557 GB, free: 26.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.9583, allocations: 36.7 kB / 0.5571 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.9583, allocations: 3.812 kB / 0.5571 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003872/0.9587, allocations: 92.22 kB / 0.5571 GB, free: 26.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.9589, allocations: 71.41 kB / 0.5572 GB, free: 26.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.9609, allocations: 1.814 MB / 0.559 GB, free: 25.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.9612, allocations: 22.45 kB / 0.559 GB, free: 25.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.9612, allocations: 19.06 kB / 0.559 GB, free: 25.03 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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 9.708e-05/0.9613, allocations: 131.3 kB / 0.5591 GB, free: 24.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-05/0.9614, allocations: 39.12 kB / 0.5592 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005462/0.9619, allocations: 311.8 kB / 0.5595 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.9619, allocations: 3.906 kB / 0.5595 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.9619, allocations: 3.875 kB / 0.5595 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.962, allocations: 0 / 0.5595 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000952/0.9629, allocations: 0.7757 MB / 0.5602 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.9629, allocations: 3.969 kB / 0.5603 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.9632, allocations: 45.84 kB / 0.5603 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001765/0.9634, allocations: 46.48 kB / 0.5603 GB, free: 24.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.9634, allocations: 14.98 kB / 0.5604 GB, free: 24.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009207/0.9643, allocations: 1.433 MB / 0.5618 GB, free: 23.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9643, allocations: 0 / 0.5618 GB, free: 23.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006316/0.965, allocations: 0.5232 MB / 0.5623 GB, free: 22.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.9651, allocations: 130.3 kB / 0.5624 GB, free: 22.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.502e-05/0.9652, allocations: 7.5 kB / 0.5624 GB, free: 22.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.9654, allocations: 14.86 kB / 0.5624 GB, free: 22.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.9655, allocations: 29.52 kB / 0.5624 GB, free: 22.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.9655, allocations: 7.812 kB / 0.5624 GB, free: 22.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002653/0.9658, allocations: 272.2 kB / 0.5627 GB, free: 22.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9658, allocations: 0 / 0.5627 GB, free: 22.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005282/0.9663, allocations: 120 kB / 0.5628 GB, free: 22.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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.001499/0.9678, allocations: 1.436 MB / 0.5642 GB, free: 21.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007533/0.9686, allocations: 451.2 kB / 0.5647 GB, free: 21.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.9686, allocations: 0 / 0.5647 GB, free: 21.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003115/0.9689, allocations: 247.1 kB / 0.5649 GB, free: 21.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005649/0.9695, allocations: 105.4 kB / 0.565 GB, free: 21.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.9711, allocations: 0.9253 MB / 0.5659 GB, free: 20.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.9715, allocations: 0.8629 MB / 0.5667 GB, free: 20.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000248/0.9717, allocations: 64.77 kB / 0.5668 GB, free: 20.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.972, allocations: 153 kB / 0.5669 GB, free: 20.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.972, allocations: 0 / 0.5669 GB, free: 20.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.999, allocations: 10.11 MB / 0.5768 GB, free: 19.14 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.9993, allocations: 220.7 kB / 0.577 GB, free: 18.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.505/3.504, allocations: 0 / 0.577 GB, free: 18.91 MB / 378.7 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)