Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001038/0.001038, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.00118/0.00118, allocations: 182.6 kB / 17.21 MB, free: 6.336 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.595/1.595, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1741/0.1741, allocations: 38.05 MB / 309.7 MB, free: 6.113 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.0005334/0.0005335, allocations: 12 kB / 376.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.249, allocations: 56.32 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.003547/0.2526, allocations: 3.995 MB / 436.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.2539, allocations: 1.065 MB / 438 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.2542, allocations: 23.81 kB / 438 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.2543, allocations: 47.61 kB / 438.1 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004024/0.2547, allocations: 198.9 kB / 438.3 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001795/0.2549, allocations: 99.88 kB / 438.4 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.2552, allocations: 422.5 kB / 438.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.2554, allocations: 60.8 kB / 438.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.2555, allocations: 131.3 kB / 439 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.2558, allocations: 167.4 kB / 439.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.2558, allocations: 16 kB / 439.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.079e-05/0.2559, allocations: 8 kB / 439.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.475e-05/0.2559, allocations: 75.73 kB / 439.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.185e-05/0.256, allocations: 73.56 kB / 439.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.2561, allocations: 175.6 kB / 439.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.2561, allocations: 0 / 439.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2562, allocations: 0 / 439.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.2562, allocations: 0 / 439.5 MB, free: 12.26 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006093/0.2568, allocations: 0.5309 MB / 440 MB, free: 11.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.2568, allocations: 8.031 kB / 440 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.902e-05/0.2569, allocations: 62.55 kB / 440.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.2569, allocations: 31.58 kB / 440.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.2573, allocations: 294.8 kB / 440.4 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.2573, allocations: 12.44 kB / 440.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.2573, allocations: 20 kB / 440.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.2576, allocations: 273.8 kB / 440.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.2577, allocations: 0 / 440.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.2577, allocations: 8 kB / 440.7 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.2577, allocations: 7.938 kB / 440.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.2579, allocations: 167.7 kB / 440.9 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008982/0.2588, allocations: 1.171 MB / 442 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.999e-05/0.2589, allocations: 81.05 kB / 442.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.606e-05/0.259, allocations: 29.81 kB / 442.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.259, allocations: 0 / 442.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.259, allocations: 38.56 kB / 442.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 8.81e-07/0.259, allocations: 4 kB / 442.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005416/0.2596, allocations: 420.6 kB / 442.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.2596, allocations: 81.06 kB / 442.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.2598, allocations: 238.6 kB / 442.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.863e-06/0.2598, allocations: 25.7 kB / 442.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.972e-05/0.2599, allocations: 195.7 kB / 443.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.2599, allocations: 31.55 kB / 443.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.112e-06/0.2599, allocations: 8 kB / 443.2 MB, free: 8.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.656e-05/0.26, allocations: 330.8 kB / 443.5 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.905e-05/0.26, allocations: 24.36 kB / 443.5 MB, free: 7.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.099e-05/0.2601, allocations: 121.6 kB / 443.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.46e-05/0.2601, allocations: 47.94 kB / 443.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2602, allocations: 0 / 443.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001998/0.2604, allocations: 189.3 kB / 443.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2604, allocations: 4 kB / 443.9 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.2604, allocations: 4 kB / 443.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.2604, allocations: 8 kB / 443.9 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.2606, allocations: 39.92 kB / 443.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.2606, allocations: 7.938 kB / 443.9 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.668e-05/0.2607, allocations: 11.95 kB / 443.9 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.2607, allocations: 8 kB / 443.9 MB, free: 7.383 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (22): * Single equations (assignments): 22 * 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.465e-05/0.2608, allocations: 150 kB / 444.1 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.22e-05/0.2608, allocations: 19.72 kB / 444.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.261, allocations: 95.38 kB / 444.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.261, allocations: 0 / 444.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.261, allocations: 0 / 444.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.261, allocations: 4 kB / 444.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003226/0.2613, allocations: 419.3 kB / 444.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.2613, allocations: 448 / 444.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.128e-05/0.2614, allocations: 24.02 kB / 444.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.2614, allocations: 0 / 444.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.2614, allocations: 8 kB / 444.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2614, allocations: 7.938 kB / 444.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.2615, allocations: 3.953 kB / 444.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.2616, allocations: 236.8 kB / 444.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.2617, allocations: 100.8 kB / 445 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.2617, allocations: 0 / 445 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.798e-05/0.2618, allocations: 8 kB / 445 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.121e-05/0.2618, allocations: 3.953 kB / 445 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.2618, allocations: 4 kB / 445 MB, free: 6.207 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.262, allocations: 170 kB / 445.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.262, allocations: 0 / 445.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.2623, allocations: 40 kB / 445.2 MB, free: 6.004 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.000308/0.2626, allocations: 0.7606 MB / 446 MB, free: 5.211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.2627, allocations: 88.53 kB / 446.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2627, allocations: 0 / 446.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.89e-05/0.2628, allocations: 31.92 kB / 446.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.2632, allocations: 49 kB / 446.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.2646, allocations: 1.348 MB / 447.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.2648, allocations: 0.7599 MB / 448.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.033e-05/0.2649, allocations: 22.3 kB / 448.3 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.2649, allocations: 75.41 kB / 448.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2649, allocations: 4 kB / 448.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01245/0.2774, allocations: 3.856 MB / 452.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.2776, allocations: 191.6 kB / 452.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/1.952, allocations: 0 / 452.4 MB, free: 14.67 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) Environment - environmentSimulation: