Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001119/0.00112, 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.795/1.795, allocations: 194.3 MB / 208.4 MB, free: 6.703 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.001741/0.001742, allocations: 118.3 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2033/0.2033, allocations: 37.9 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.652e-05/4.654e-05, allocations: 7.984 kB / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3008, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5195/0.8203, allocations: 94.25 MB / 0.5323 GB, free: 31.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004221/0.8208, allocations: 96 kB / 0.5324 GB, free: 31.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04196/0.8628, allocations: 11.36 MB / 0.5435 GB, free: 30.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.8628, allocations: 0 / 0.5435 GB, free: 30.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.68e-05/0.8629, allocations: 13.2 kB / 0.5435 GB, free: 30.28 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001296/0.8642, allocations: 0.6315 MB / 0.5442 GB, free: 29.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.8643, allocations: 9.594 kB / 0.5442 GB, free: 29.81 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.8644, allocations: 77.61 kB / 0.5442 GB, free: 29.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.8645, allocations: 45.31 kB / 0.5443 GB, free: 29.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.8659, allocations: 0.5499 MB / 0.5448 GB, free: 29.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.866, allocations: 54.8 kB / 0.5449 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.718e-05/0.8661, allocations: 34.97 kB / 0.5449 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008371/0.8669, allocations: 429.5 kB / 0.5453 GB, free: 29.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.8669, allocations: 7.938 kB / 0.5453 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/0.867, allocations: 15.28 kB / 0.5453 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.867, allocations: 11.69 kB / 0.5453 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005539/0.8676, allocations: 248.1 kB / 0.5456 GB, free: 29.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.8701, allocations: 1.876 MB / 0.5474 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.8704, allocations: 167.4 kB / 0.5476 GB, free: 28.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.8706, allocations: 74.8 kB / 0.5476 GB, free: 27.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.8706, allocations: 3.906 kB / 0.5476 GB, free: 27.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.8706, allocations: 30.56 kB / 0.5477 GB, free: 27.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.894e-06/0.8706, allocations: 0 / 0.5477 GB, free: 27.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=20): time 0.001532/0.8722, allocations: 0.8472 MB / 0.5485 GB, free: 27.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.8722, allocations: 110.7 kB / 0.5486 GB, free: 27.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.8726, allocations: 277 kB / 0.5489 GB, free: 27.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.8726, allocations: 29.27 kB / 0.5489 GB, free: 27.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.8728, allocations: 243.5 kB / 0.5491 GB, free: 26.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.303e-05/0.8729, allocations: 77.06 kB / 0.5492 GB, free: 26.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/0.8729, allocations: 3.875 kB / 0.5492 GB, free: 26.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.8731, allocations: 350.7 kB / 0.5495 GB, free: 26.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.8732, allocations: 64.47 kB / 0.5496 GB, free: 26.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.8735, allocations: 204.9 kB / 0.5498 GB, free: 26.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.8738, allocations: 100.3 kB / 0.5499 GB, free: 26.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.8738, allocations: 1.688 kB / 0.5499 GB, free: 26.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007519/0.8746, allocations: 324.4 kB / 0.5502 GB, free: 26.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.8746, allocations: 6.156 kB / 0.5502 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.8746, allocations: 8.031 kB / 0.5502 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.8747, allocations: 10.09 kB / 0.5502 GB, free: 26.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.875, allocations: 79.2 kB / 0.5503 GB, free: 26.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.875, allocations: 9.5 kB / 0.5503 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.8752, allocations: 14.7 kB / 0.5503 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.8753, allocations: 15.44 kB / 0.5503 GB, free: 26.3 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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.231e-05/0.8754, allocations: 131.2 kB / 0.5505 GB, free: 26.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.904e-05/0.8754, allocations: 30.56 kB / 0.5505 GB, free: 26.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003449/0.8758, allocations: 195.8 kB / 0.5507 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.8758, allocations: 3.625 kB / 0.5507 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.8758, allocations: 1.625 kB / 0.5507 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.8758, allocations: 3.609 kB / 0.5507 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007837/0.8766, allocations: 0.6254 MB / 0.5513 GB, free: 25.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.8766, allocations: 5.469 kB / 0.5513 GB, free: 25.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.8769, allocations: 50.44 kB / 0.5514 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.8769, allocations: 1.688 kB / 0.5514 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.8769, allocations: 6.875 kB / 0.5514 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.8769, allocations: 2.75 kB / 0.5514 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.8769, allocations: 4 kB / 0.5514 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000461/0.8774, allocations: 475.6 kB / 0.5518 GB, free: 25.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.935e-05/0.8775, allocations: 108.5 kB / 0.5519 GB, free: 25.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.8775, allocations: 14.17 kB / 0.5519 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.8777, allocations: 4.625 kB / 0.5519 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.83e-05/0.8778, allocations: 16.69 kB / 0.552 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.8778, allocations: 8.812 kB / 0.552 GB, free: 25.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002097/0.878, allocations: 216.2 kB / 0.5522 GB, free: 25.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.878, allocations: 0 / 0.5522 GB, free: 25.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004087/0.8785, allocations: 75.19 kB / 0.5523 GB, free: 25.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006929/0.8792, allocations: 1.256 MB / 0.5535 GB, free: 24.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002698/0.8794, allocations: 186.1 kB / 0.5537 GB, free: 24.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.8794, allocations: 1.125 kB / 0.5537 GB, free: 24.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.8796, allocations: 76.05 kB / 0.5537 GB, free: 24.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000508/0.8801, allocations: 92.92 kB / 0.5538 GB, free: 24.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.8814, allocations: 0.7832 MB / 0.5546 GB, free: 23.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.8817, allocations: 0.8244 MB / 0.5554 GB, free: 23.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.8819, allocations: 56.59 kB / 0.5554 GB, free: 23.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.8821, allocations: 119.4 kB / 0.5556 GB, free: 23.06 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.8821, allocations: 0 / 0.5556 GB, free: 23.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.9023, allocations: 6.894 MB / 0.5623 GB, free: 22.38 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.9025, allocations: 149.5 kB / 0.5624 GB, free: 22.15 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.188/3.091, allocations: 0 / 0.5624 GB, free: 22.15 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)