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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 101.1 kB / 16.5 MB, free: 6.641 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.001523/0.001523, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.387/1.387, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1811/0.1811, allocations: 37.99 MB / 308.6 MB, free: 6.234 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.001385/0.001385, allocations: 67.89 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2545, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005661/0.2602, allocations: 5.442 MB / 435.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002105/0.2624, allocations: 1.722 MB / 437.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002829/0.2627, allocations: 31.81 kB / 437.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003403/0.263, allocations: 91.42 kB / 437.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005372/0.2637, allocations: 242.7 kB / 437.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.2639, allocations: 119.8 kB / 437.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005601/0.2645, allocations: 0.7203 MB / 438.3 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.2648, allocations: 321.8 kB / 438.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.2651, allocations: 207.1 kB / 438.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.2653, allocations: 243 kB / 439.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.564e-05/0.2654, allocations: 24 kB / 439.1 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.162e-05/0.2654, allocations: 31.94 kB / 439.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.061e-05/0.2655, allocations: 103.7 kB / 439.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.2657, allocations: 218.9 kB / 439.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003072/0.266, allocations: 494.3 kB / 439.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.266, allocations: 0 / 439.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.266, allocations: 0 / 439.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.266, allocations: 4 kB / 439.9 MB, free: 9.746 MB / 318.1 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.001114/0.2672, allocations: 0.7069 MB / 440.6 MB, free: 8.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.2672, allocations: 8.031 kB / 440.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.159e-05/0.2673, allocations: 70.72 kB / 440.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.792e-05/0.2674, allocations: 48.38 kB / 440.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004663/0.2679, allocations: 399.9 kB / 441.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.111e-05/0.268, allocations: 54.7 kB / 441.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.006e-05/0.268, allocations: 39.91 kB / 441.3 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005483/0.2686, allocations: 436 kB / 441.7 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.2686, allocations: 4 kB / 441.7 MB, free: 7.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/0.2686, allocations: 16 kB / 441.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.2687, allocations: 8 kB / 441.7 MB, free: 7.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004204/0.2691, allocations: 278 kB / 442 MB, free: 7.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.2707, allocations: 1.849 MB / 443.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.271, allocations: 179.5 kB / 444 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.2711, allocations: 74.67 kB / 444.1 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.2711, allocations: 8 kB / 444.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.2712, allocations: 34.56 kB / 444.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.2712, allocations: 0 / 444.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.00107/0.2722, allocations: 0.702 MB / 444.8 MB, free: 4.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.2723, allocations: 115 kB / 444.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.2725, allocations: 312.5 kB / 445.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.2725, allocations: 25.7 kB / 445.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.2726, allocations: 247.5 kB / 445.5 MB, free: 3.781 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/0.2727, allocations: 70.98 kB / 445.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.412e-05/0.2728, allocations: 65.94 kB / 445.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.484e-05/0.2728, allocations: 342.8 kB / 446 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.273, allocations: 72.62 kB / 446 MB, free: 3.227 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.2731, allocations: 205.5 kB / 446.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002986/0.2734, allocations: 288 kB / 446.5 MB, free: 2.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2734, allocations: 0 / 446.5 MB, free: 2.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000427/0.2739, allocations: 336.7 kB / 446.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.872e-05/0.2739, allocations: 8 kB / 446.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.2739, allocations: 4 kB / 446.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.2739, allocations: 4 kB / 446.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.2742, allocations: 72.44 kB / 446.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.2742, allocations: 11.94 kB / 446.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.2744, allocations: 19.98 kB / 447 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.2744, allocations: 12 kB / 447 MB, free: 2.164 MB / 318.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.2746, allocations: 177.7 kB / 447.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.2747, allocations: 35.56 kB / 447.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003607/0.275, allocations: 201.7 kB / 447.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.275, allocations: 0 / 447.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2751, allocations: 4 kB / 447.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2751, allocations: 4 kB / 447.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007856/0.2759, allocations: 0.6231 MB / 448 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2759, allocations: 0 / 448 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002221/0.2761, allocations: 43.92 kB / 448.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.2761, allocations: 11.98 kB / 448.1 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.2761, allocations: 0 / 448.1 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2761, allocations: 8.031 kB / 448.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2762, allocations: 0 / 448.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004842/0.2766, allocations: 448.5 kB / 448.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.567e-05/0.2767, allocations: 100.7 kB / 448.6 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.2767, allocations: 12 kB / 448.6 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.2769, allocations: 15.97 kB / 448.6 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.277, allocations: 11.92 kB / 448.7 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.277, allocations: 12 kB / 448.7 MB, free: 372 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001596/0.2772, allocations: 215 kB / 448.9 MB, free: 156 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2772, allocations: 0 / 448.9 MB, free: 156 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003819/0.2776, allocations: 72 kB / 448.9 MB, free: 84 kB / 318.1 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.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008792/0.2784, allocations: 0.9785 MB / 449.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004651/0.2789, allocations: 195.7 kB / 450.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2789, allocations: 0 / 450.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.2791, allocations: 79.91 kB / 450.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006765/0.2798, allocations: 90.62 kB / 450.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.2849, allocations: 3.574 MB / 453.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.2854, allocations: 0.8148 MB / 454.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002512/0.2857, allocations: 51.25 kB / 454.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.2859, allocations: 119.4 kB / 454.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2859, allocations: 0 / 454.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.3041, allocations: 6.606 MB / 461.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001883/0.3043, allocations: 215.4 kB / 461.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.903/2.207, allocations: 0 / 461.7 MB, free: 3.066 MB / 334.1 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/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)