Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001336/0.001336, allocations: 182 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.723/1.723, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001683/0.001683, allocations: 115.9 kB / 253.5 MB, free: 9.598 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.15/0.15, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.044e-05, allocations: 0 / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.4044, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5036/0.9081, allocations: 96.9 MB / 0.5349 GB, free: 32.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00221/0.9103, allocations: 0.6938 MB / 0.5356 GB, free: 32.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04331/0.9537, allocations: 16.11 MB / 0.5513 GB, free: 30.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.9537, allocations: 0 / 0.5513 GB, free: 30.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.767e-05/0.9538, allocations: 15.72 kB / 0.5513 GB, free: 30.8 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001308/0.9551, allocations: 0.7945 MB / 0.5521 GB, free: 30.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.9551, allocations: 7.812 kB / 0.5521 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.322e-05/0.9552, allocations: 89.11 kB / 0.5522 GB, free: 30.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.9554, allocations: 62.44 kB / 0.5523 GB, free: 30.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.9568, allocations: 0.7427 MB / 0.553 GB, free: 29.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.9569, allocations: 35.84 kB / 0.553 GB, free: 29.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.742e-05/0.957, allocations: 53.69 kB / 0.5531 GB, free: 29.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007243/0.9577, allocations: 0.514 MB / 0.5536 GB, free: 29.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.9577, allocations: 0 / 0.5536 GB, free: 29.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/0.9578, allocations: 14.97 kB / 0.5536 GB, free: 29.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.9578, allocations: 11.72 kB / 0.5536 GB, free: 29.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004787/0.9583, allocations: 322 kB / 0.5539 GB, free: 29.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.9606, allocations: 2.08 MB / 0.5559 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.961, allocations: 239.2 kB / 0.5562 GB, free: 28.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.9611, allocations: 79.5 kB / 0.5562 GB, free: 28.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.9611, allocations: 11.3 kB / 0.5563 GB, free: 28.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.9614, allocations: 159 kB / 0.5564 GB, free: 28.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.542e-06/0.9614, allocations: 3.938 kB / 0.5564 GB, free: 28.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.001683/0.9631, allocations: 1.09 MB / 0.5575 GB, free: 27.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.9632, allocations: 136.1 kB / 0.5576 GB, free: 27.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/0.9635, allocations: 368.1 kB / 0.558 GB, free: 27.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.9636, allocations: 29.45 kB / 0.558 GB, free: 27.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.9637, allocations: 288.8 kB / 0.5583 GB, free: 27.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/0.9638, allocations: 98.67 kB / 0.5583 GB, free: 27.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.775e-05/0.9638, allocations: 11.16 kB / 0.5584 GB, free: 27.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.821e-05/0.9639, allocations: 349 kB / 0.5587 GB, free: 26.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.9641, allocations: 88.14 kB / 0.5588 GB, free: 26.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.9642, allocations: 223.4 kB / 0.559 GB, free: 26.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.9645, allocations: 143 kB / 0.5591 GB, free: 26.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.9645, allocations: 0 / 0.5591 GB, free: 26.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007612/0.9653, allocations: 478.1 kB / 0.5596 GB, free: 26.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.9653, allocations: 33.58 kB / 0.5596 GB, free: 26.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.9653, allocations: 7.906 kB / 0.5596 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003837/0.9657, allocations: 91.22 kB / 0.5597 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.966, allocations: 76.83 kB / 0.5598 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.9676, allocations: 1.684 MB / 0.5614 GB, free: 25.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.9678, allocations: 22.64 kB / 0.5614 GB, free: 25.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.9679, allocations: 19.31 kB / 0.5615 GB, free: 25.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (42): * Single equations (assignments): 40 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.968, allocations: 139 kB / 0.5616 GB, free: 24.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.188e-05/0.968, allocations: 46.47 kB / 0.5616 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006062/0.9687, allocations: 289.9 kB / 0.5619 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.9687, allocations: 3.906 kB / 0.5619 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.9687, allocations: 3.953 kB / 0.5619 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.9687, allocations: 0 / 0.5619 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.9697, allocations: 0.7771 MB / 0.5627 GB, free: 24.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.9697, allocations: 0 / 0.5627 GB, free: 24.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.97, allocations: 60.67 kB / 0.5627 GB, free: 24.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.9702, allocations: 48.17 kB / 0.5628 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.9702, allocations: 7.688 kB / 0.5628 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009139/0.9711, allocations: 1.43 MB / 0.5642 GB, free: 23.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.9712, allocations: 0 / 0.5642 GB, free: 23.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006124/0.9718, allocations: 0.49 MB / 0.5647 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.9719, allocations: 141.2 kB / 0.5648 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.972, allocations: 3.5 kB / 0.5648 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.9722, allocations: 18.8 kB / 0.5648 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.379e-05/0.9722, allocations: 18.75 kB / 0.5648 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.9723, allocations: 15.48 kB / 0.5649 GB, free: 22.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002695/0.9725, allocations: 279.9 kB / 0.5651 GB, free: 22.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.9726, allocations: 0 / 0.5651 GB, free: 22.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005056/0.9731, allocations: 135.9 kB / 0.5653 GB, free: 22.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.motor.phi_el,dcm_par.motor.w_el,dcm_par.motor.i,dcm_par.motor.i_f,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 (23): * Single equations (assignments): 21 * 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.001428/0.9745, allocations: 1.403 MB / 0.5666 GB, free: 21.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006746/0.9752, allocations: 445.7 kB / 0.5671 GB, free: 21.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.9752, allocations: 0 / 0.5671 GB, free: 21.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003124/0.9755, allocations: 241.2 kB / 0.5673 GB, free: 21.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.9761, allocations: 115.5 kB / 0.5674 GB, free: 21.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.9778, allocations: 1.047 MB / 0.5684 GB, free: 20.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.9782, allocations: 0.8845 MB / 0.5693 GB, free: 20.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002551/0.9785, allocations: 61.64 kB / 0.5693 GB, free: 20.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.9787, allocations: 170.9 kB / 0.5695 GB, free: 20.19 MB / 378.7 MB Notification: Performance of SimCode: time 8.22e-07/0.9787, allocations: 4 kB / 0.5695 GB, free: 20.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/1.005, allocations: 10.67 MB / 0.5799 GB, free: 18.05 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/1.005, allocations: 228.7 kB / 0.5801 GB, free: 17.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.531/3.536, allocations: 3.938 kB / 0.5801 GB, free: 17.81 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)