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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001073/0.001077, allocations: 110.5 kB / 16.62 MB, free: 6.961 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.001126/0.001126, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1641/0.1641, allocations: 38.02 MB / 329.4 MB, free: 9.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 65 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0864/0.08767, allocations: 58.07 MB / 456.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005784/0.0935, allocations: 5.438 MB / 461.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.09556, allocations: 1.671 MB / 463.6 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002239/0.0958, allocations: 35.75 kB / 463.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003068/0.09613, allocations: 91.42 kB / 463.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005143/0.09665, allocations: 242.8 kB / 463.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.09692, allocations: 123.8 kB / 464 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005644/0.0975, allocations: 0.5877 MB / 464.6 MB, free: 124 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004114/0.09792, allocations: 386.6 kB / 465 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.09817, allocations: 243.1 kB / 465.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002821/0.09846, allocations: 243 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.683e-05/0.09852, allocations: 36 kB / 465.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.044e-05/0.09859, allocations: 40 kB / 465.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.0987, allocations: 127.6 kB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.09888, allocations: 226.9 kB / 465.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003909/0.09928, allocations: 0.4944 MB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.09929, allocations: 0 / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.0993, allocations: 4 kB / 466.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.09931, allocations: 0 / 466.4 MB, free: 14.33 MB / 350.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.001039/0.1004, allocations: 0.703 MB / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1004, allocations: 11.89 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.297e-05/0.1005, allocations: 74.72 kB / 467.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.128e-05/0.1006, allocations: 48.47 kB / 467.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004687/0.101, allocations: 403.7 kB / 467.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.616e-05/0.1011, allocations: 54.7 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.292e-05/0.1012, allocations: 36 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006123/0.1018, allocations: 432.1 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.1018, allocations: 0 / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.1019, allocations: 16 kB / 468.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.1019, allocations: 15.98 kB / 468.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004471/0.1023, allocations: 274 kB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.1041, allocations: 1.841 MB / 470.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.1044, allocations: 183.6 kB / 470.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1046, allocations: 77.48 kB / 470.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.1046, allocations: 0 / 470.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.1046, allocations: 46.5 kB / 470.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.142e-06/0.1046, allocations: 0 / 470.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001152/0.1058, allocations: 0.6982 MB / 471.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.1059, allocations: 110.8 kB / 471.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.1061, allocations: 308.5 kB / 471.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.1062, allocations: 33.7 kB / 471.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.1063, allocations: 251.7 kB / 472 MB, free: 8.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.1064, allocations: 71.09 kB / 472 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.081e-05/0.1064, allocations: 61.94 kB / 472.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1066, allocations: 342.8 kB / 472.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.1067, allocations: 72.62 kB / 472.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.1069, allocations: 205.5 kB / 472.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/0.1073, allocations: 290.2 kB / 473 MB, free: 7.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1073, allocations: 4 kB / 473 MB, free: 7.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000475/0.1078, allocations: 331.9 kB / 473.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.1078, allocations: 11.97 kB / 473.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.1078, allocations: 4 kB / 473.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.1078, allocations: 8 kB / 473.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.1081, allocations: 79.84 kB / 473.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.1081, allocations: 4 kB / 473.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.1083, allocations: 15.98 kB / 473.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.1083, allocations: 16 kB / 473.4 MB, free: 6.746 MB / 350.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.000154/0.1085, allocations: 181.7 kB / 473.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.309e-05/0.1086, allocations: 35.56 kB / 473.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003598/0.1089, allocations: 195.3 kB / 473.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1089, allocations: 4 kB / 473.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1089, allocations: 0 / 473.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.109, allocations: 4 kB / 473.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008777/0.1098, allocations: 0.62 MB / 474.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1099, allocations: 0 / 474.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.1101, allocations: 39.92 kB / 474.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1101, allocations: 0 / 474.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.1101, allocations: 11.98 kB / 474.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1101, allocations: 0 / 474.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1101, allocations: 4 kB / 474.5 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005564/0.1107, allocations: 455.9 kB / 475 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.835e-05/0.1108, allocations: 100.7 kB / 475.1 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.1108, allocations: 8 kB / 475.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.111, allocations: 4.031 kB / 475.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.1111, allocations: 15.98 kB / 475.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.1111, allocations: 8 kB / 475.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.1113, allocations: 223 kB / 475.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1113, allocations: 0 / 475.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.1117, allocations: 68 kB / 475.4 MB, free: 4.68 MB / 350.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.0007939/0.1125, allocations: 0.985 MB / 476.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003886/0.1129, allocations: 204.4 kB / 476.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1129, allocations: 4.312 kB / 476.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001497/0.1131, allocations: 86.34 kB / 476.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006185/0.1137, allocations: 92.77 kB / 476.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/0.1175, allocations: 3.561 MB / 480.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.1178, allocations: 0.8146 MB / 481.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001838/0.118, allocations: 47.27 kB / 481.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.1182, allocations: 127.3 kB / 481.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1182, allocations: 0 / 481.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.488/1.606, allocations: 6.782 MB / 488.1 MB, free: 7.887 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/1.606, allocations: 207.7 kB / 488.3 MB, free: 7.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.6/4.206, allocations: 0 / 488.3 MB, free: 7.621 MB / 366.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)