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.0009537/0.0009538, allocations: 96.2 kB / 16.3 MB, free: 5.531 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.0009548/0.0009548, allocations: 185 kB / 17.2 MB, free: 5.465 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.397/1.397, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1716/0.1716, allocations: 38.04 MB / 309.7 MB, free: 6.121 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.0005027/0.0005028, allocations: 16 kB / 376.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2579, allocations: 56.33 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00399/0.2619, allocations: 4.61 MB / 437.5 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.2638, allocations: 1.615 MB / 439.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002483/0.2641, allocations: 27.81 kB / 439.2 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002505/0.2643, allocations: 111.3 kB / 439.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004853/0.2648, allocations: 267.1 kB / 439.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.2652, allocations: 135.8 kB / 439.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.2656, allocations: 359.3 kB / 440 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.2659, allocations: 280.4 kB / 440.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.2661, allocations: 187.3 kB / 440.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.2663, allocations: 163.3 kB / 440.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.341e-05/0.2663, allocations: 20 kB / 440.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.557e-05/0.2664, allocations: 20 kB / 440.7 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.645e-05/0.2664, allocations: 99.66 kB / 440.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.632e-05/0.2665, allocations: 105.5 kB / 440.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.2668, allocations: 387 kB / 441.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.2668, allocations: 0 / 441.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2668, allocations: 0 / 441.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2668, allocations: 4 kB / 441.3 MB, free: 10.42 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.0008666/0.2677, allocations: 0.6405 MB / 441.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2677, allocations: 12.03 kB / 441.9 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.792e-05/0.2678, allocations: 70.53 kB / 442 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.473e-05/0.2678, allocations: 55.42 kB / 442 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.2683, allocations: 383 kB / 442.4 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.834e-05/0.2684, allocations: 58.7 kB / 442.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.582e-05/0.2684, allocations: 32 kB / 442.5 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005053/0.2689, allocations: 436 kB / 442.9 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.269, allocations: 0 / 442.9 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.269, allocations: 12 kB / 442.9 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.269, allocations: 11.95 kB / 442.9 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/0.2694, allocations: 289.9 kB / 443.2 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.271, allocations: 1.842 MB / 445.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.2712, allocations: 179.5 kB / 445.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.2713, allocations: 128 / 445.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.2713, allocations: 42.56 kB / 445.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.2713, allocations: 3.984 kB / 445.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001009/0.2723, allocations: 0.7145 MB / 446 MB, free: 5.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.2724, allocations: 102.8 kB / 446.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/0.2726, allocations: 312.4 kB / 446.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.2726, allocations: 25.7 kB / 446.4 MB, free: 4.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.062e-05/0.2727, allocations: 247.6 kB / 446.7 MB, free: 4.605 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.739e-05/0.2727, allocations: 67.03 kB / 446.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.2728, allocations: 15.88 kB / 446.8 MB, free: 4.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.979e-05/0.2728, allocations: 342.9 kB / 447.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.273, allocations: 76.61 kB / 447.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.2731, allocations: 205.6 kB / 447.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.2733, allocations: 104.8 kB / 447.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2733, allocations: 0 / 447.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000422/0.2737, allocations: 334.1 kB / 447.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2738, allocations: 8 kB / 447.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.2738, allocations: 8.031 kB / 447.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2738, allocations: 8 kB / 447.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.2741, allocations: 75.84 kB / 447.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.2741, allocations: 7.984 kB / 447.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.2743, allocations: 16 kB / 447.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2743, allocations: 12 kB / 447.9 MB, free: 3.281 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.2744, allocations: 185.7 kB / 448.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.685e-05/0.2745, allocations: 35.58 kB / 448.1 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003172/0.2748, allocations: 195.8 kB / 448.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.2748, allocations: 4 kB / 448.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2748, allocations: 0 / 448.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2748, allocations: 4 kB / 448.3 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006831/0.2755, allocations: 0.6201 MB / 449 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2755, allocations: 4 kB / 449 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.2758, allocations: 47.91 kB / 449 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2758, allocations: 0 / 449 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.2758, allocations: 4 kB / 449 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.2758, allocations: 0 / 449 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2758, allocations: 4 kB / 449 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004388/0.2763, allocations: 497.6 kB / 449.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.2763, allocations: 104.8 kB / 449.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.2764, allocations: 8 kB / 449.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.2765, allocations: 8 kB / 449.6 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.2766, allocations: 15.94 kB / 449.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.2766, allocations: 8 kB / 449.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001454/0.2768, allocations: 215 kB / 449.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.72e-07/0.2768, allocations: 8 kB / 449.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003777/0.2772, allocations: 71.94 kB / 449.9 MB, free: 1.137 MB / 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 (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.0006317/0.2778, allocations: 1.229 MB / 451.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003719/0.2782, allocations: 200 kB / 451.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2782, allocations: 0 / 451.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.2784, allocations: 79.84 kB / 451.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.2789, allocations: 86.38 kB / 451.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.2826, allocations: 4.954 MB / 456.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.283, allocations: 0.8226 MB / 457.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000197/0.2832, allocations: 51.25 kB / 457.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.2833, allocations: 119.4 kB / 457.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2834, allocations: 0 / 457.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.016/0.2994, allocations: 6.43 MB / 463.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/0.2996, allocations: 175.9 kB / 464.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.013, allocations: 3.938 kB / 464.1 MB, free: 2.785 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/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) Environment - environmentSimulation: