Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_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.0008906/0.0008906, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009584/0.0009584, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.242/1.242, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2731/0.2731, allocations: 38.06 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.000286, allocations: 12 kB / 400.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2515, allocations: 59.15 MB / 459.2 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.004523/0.2561, allocations: 4.62 MB / 463.8 MB, free: 27.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002191/0.2583, allocations: 1.563 MB / 465.4 MB, free: 26.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003631/0.2587, allocations: 24.69 kB / 465.4 MB, free: 26.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003376/0.2591, allocations: 115 kB / 465.5 MB, free: 26.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007106/0.2598, allocations: 264.3 kB / 465.8 MB, free: 26.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.2602, allocations: 136.7 kB / 465.9 MB, free: 25.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000545/0.2608, allocations: 359.3 kB / 466.3 MB, free: 25.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004011/0.2612, allocations: 282.7 kB / 466.6 MB, free: 25.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.2614, allocations: 187.7 kB / 466.7 MB, free: 25.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.2617, allocations: 166.7 kB / 466.9 MB, free: 25.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.2618, allocations: 24 kB / 466.9 MB, free: 25.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.089e-05/0.2618, allocations: 21.09 kB / 466.9 MB, free: 25.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.2619, allocations: 93.75 kB / 467 MB, free: 25.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.317e-05/0.262, allocations: 106.5 kB / 467.1 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004234/0.2625, allocations: 387.3 kB / 467.5 MB, free: 25.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.2625, allocations: 1.188 kB / 467.5 MB, free: 25.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2625, allocations: 0 / 467.5 MB, free: 25.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.2625, allocations: 0 / 467.5 MB, free: 25.32 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.0009906/0.2635, allocations: 0.6423 MB / 468.2 MB, free: 24.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2635, allocations: 9.438 kB / 468.2 MB, free: 24.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.89e-05/0.2636, allocations: 70.86 kB / 468.2 MB, free: 24.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.651e-05/0.2637, allocations: 49.22 kB / 468.3 MB, free: 24.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005444/0.2642, allocations: 388.6 kB / 468.7 MB, free: 24.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-05/0.2644, allocations: 60.09 kB / 468.7 MB, free: 24.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.016e-05/0.2644, allocations: 36 kB / 468.8 MB, free: 24.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006376/0.2651, allocations: 428.8 kB / 469.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2651, allocations: 9.812 kB / 469.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.2651, allocations: 10.56 kB / 469.2 MB, free: 24.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.2651, allocations: 10.12 kB / 469.2 MB, free: 24.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004722/0.2656, allocations: 277.3 kB / 469.5 MB, free: 24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.2674, allocations: 1.85 MB / 471.3 MB, free: 22.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.2678, allocations: 184.8 kB / 471.5 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.2678, allocations: 6 kB / 471.5 MB, free: 22.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.2678, allocations: 37.42 kB / 471.6 MB, free: 22.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.713e-06/0.2678, allocations: 4 kB / 471.6 MB, free: 22.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001185/0.269, allocations: 0.711 MB / 472.3 MB, free: 21.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.2691, allocations: 118.2 kB / 472.4 MB, free: 21.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002856/0.2694, allocations: 306.2 kB / 472.7 MB, free: 21.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.2694, allocations: 30.8 kB / 472.7 MB, free: 21.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.2695, allocations: 244.4 kB / 472.9 MB, free: 21.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.892e-05/0.2696, allocations: 70.59 kB / 473 MB, free: 21.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.278e-05/0.2696, allocations: 6.469 kB / 473 MB, free: 21.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.496e-05/0.2697, allocations: 347.8 kB / 473.4 MB, free: 20.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.2698, allocations: 69.53 kB / 473.4 MB, free: 20.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.27, allocations: 208.8 kB / 473.6 MB, free: 20.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.2702, allocations: 106 kB / 473.7 MB, free: 20.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2703, allocations: 1.156 kB / 473.7 MB, free: 20.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004907/0.2707, allocations: 328.4 kB / 474.1 MB, free: 20.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.2708, allocations: 7.406 kB / 474.1 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.2708, allocations: 4.859 kB / 474.1 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.2708, allocations: 8.125 kB / 474.1 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.2711, allocations: 81.97 kB / 474.2 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.2711, allocations: 7.109 kB / 474.2 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/0.2713, allocations: 16.19 kB / 474.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.2713, allocations: 13.73 kB / 474.2 MB, free: 20.49 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.2715, allocations: 183.2 kB / 474.4 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.933e-05/0.2715, allocations: 30 kB / 474.4 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.2719, allocations: 198.4 kB / 474.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2719, allocations: 3.734 kB / 474.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.2719, allocations: 5.312 kB / 474.6 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.2719, allocations: 2.125 kB / 474.6 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008403/0.2728, allocations: 0.6221 MB / 475.2 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2728, allocations: 4.031 kB / 475.2 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.273, allocations: 50.69 kB / 475.3 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.273, allocations: 3.453 kB / 475.3 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.2731, allocations: 1.891 kB / 475.3 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2731, allocations: 2.75 kB / 475.3 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2731, allocations: 9.828 kB / 475.3 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005161/0.2736, allocations: 490.2 kB / 475.8 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.2737, allocations: 106.5 kB / 475.9 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.35e-05/0.2737, allocations: 11.53 kB / 475.9 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.2739, allocations: 5.344 kB / 475.9 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.657e-05/0.274, allocations: 18.75 kB / 475.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.274, allocations: 6.25 kB / 475.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001941/0.2742, allocations: 214.1 kB / 476.1 MB, free: 19.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2742, allocations: 1.188 kB / 476.1 MB, free: 19.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004197/0.2746, allocations: 69.94 kB / 476.2 MB, free: 19.12 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 (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.0007032/0.2753, allocations: 1.228 MB / 477.4 MB, free: 18.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004257/0.2758, allocations: 197.5 kB / 477.6 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2758, allocations: 5.594 kB / 477.6 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.2759, allocations: 74.67 kB / 477.7 MB, free: 17.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.2765, allocations: 90.67 kB / 477.8 MB, free: 17.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00378/0.2803, allocations: 4.962 MB / 482.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.2806, allocations: 0.822 MB / 483.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002293/0.2808, allocations: 46.25 kB / 483.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.2809, allocations: 121.4 kB / 483.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2809, allocations: 3.938 kB / 483.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.2993, allocations: 6.44 MB / 490.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/0.2995, allocations: 191.9 kB / 490.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/2.06, allocations: 0 / 490.4 MB, free: 8.176 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat does not exist to compare? outputFormat=mat