Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 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.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_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.0008318/0.0008318, allocations: 94.69 kB / 16.3 MB, free: 5.656 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.0008455/0.0008455, allocations: 184.9 kB / 17.2 MB, free: 5.59 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.264/1.264, allocations: 223.2 MB / 241.1 MB, free: 14.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1606/0.1606, allocations: 38.09 MB / 330.3 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003012, allocations: 8 kB / 400.1 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1116, allocations: 59.17 MB / 459.2 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004818/0.1164, allocations: 3.87 MB / 463.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.1179, allocations: 1.018 MB / 464.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002063/0.1182, allocations: 23.81 kB / 464.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.1183, allocations: 43.67 kB / 464.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004493/0.1188, allocations: 183.4 kB / 464.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.119, allocations: 99.86 kB / 464.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002823/0.1193, allocations: 211.5 kB / 464.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.1195, allocations: 68.72 kB / 464.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.1197, allocations: 131.5 kB / 464.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.1199, allocations: 119.5 kB / 465 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.12, allocations: 12 kB / 465 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.12e-05/0.12, allocations: 8 kB / 465 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.683e-05/0.1201, allocations: 67.8 kB / 465.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.1202, allocations: 73.58 kB / 465.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.1204, allocations: 183.5 kB / 465.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.1204, allocations: 3.938 kB / 465.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1204, allocations: 0 / 465.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1204, allocations: 0 / 465.3 MB, free: 1.152 MB / 334.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.0007659/0.1212, allocations: 0.5192 MB / 465.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.1212, allocations: 8.031 kB / 465.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.042e-05/0.1213, allocations: 62.53 kB / 465.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.617e-05/0.1213, allocations: 23.72 kB / 465.9 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.1217, allocations: 298.8 kB / 466.2 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.1218, allocations: 20.39 kB / 466.2 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.1218, allocations: 16 kB / 466.3 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.1222, allocations: 270 kB / 466.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1222, allocations: 0 / 466.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.1223, allocations: 8 kB / 466.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1223, allocations: 8 kB / 466.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.1225, allocations: 155.8 kB / 466.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.1238, allocations: 1.183 MB / 467.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.1239, allocations: 85.05 kB / 467.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.1239, allocations: 0 / 467.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.1239, allocations: 34.69 kB / 468 MB, free: 14.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.1239, allocations: 0 / 468 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006445/0.1246, allocations: 408.9 kB / 468.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.1247, allocations: 85.23 kB / 468.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.1249, allocations: 242.5 kB / 468.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.1249, allocations: 29.7 kB / 468.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.125, allocations: 187.6 kB / 468.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.1251, allocations: 27.64 kB / 468.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.362e-06/0.1251, allocations: 4 kB / 468.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1252, allocations: 334.8 kB / 469.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.428e-05/0.1252, allocations: 24.36 kB / 469.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.469e-05/0.1254, allocations: 123.6 kB / 469.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.111e-05/0.1254, allocations: 43.98 kB / 469.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1254, allocations: 4 kB / 469.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002387/0.1257, allocations: 192.9 kB / 469.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1257, allocations: 8 kB / 469.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1257, allocations: 4 kB / 469.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1257, allocations: 4 kB / 469.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.1259, allocations: 36.86 kB / 469.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.1259, allocations: 11.94 kB / 469.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.441e-05/0.126, allocations: 8 kB / 469.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.126, allocations: 16 kB / 469.7 MB, free: 12.32 MB / 350.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 0.0001306/0.1262, allocations: 149.7 kB / 469.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.1262, allocations: 19.77 kB / 469.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.1264, allocations: 95.31 kB / 470 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1264, allocations: 4 kB / 470 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1264, allocations: 0 / 470 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1264, allocations: 4 kB / 470 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003996/0.1268, allocations: 427.2 kB / 470.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1268, allocations: 0 / 470.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.982e-05/0.1269, allocations: 19.92 kB / 470.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1269, allocations: 4 kB / 470.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.1269, allocations: 3.938 kB / 470.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1269, allocations: 0 / 470.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.127, allocations: 4 kB / 470.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002469/0.1272, allocations: 248.4 kB / 470.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.762e-05/0.1273, allocations: 100.8 kB / 470.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.1273, allocations: 4 kB / 470.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.119e-05/0.1274, allocations: 0 / 470.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.36e-05/0.1274, allocations: 8.062 kB / 470.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.1275, allocations: 4 kB / 470.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001287/0.1276, allocations: 173.9 kB / 471 MB, free: 10.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1276, allocations: 0 / 471 MB, free: 10.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002895/0.1279, allocations: 40 kB / 471 MB, free: 10.92 MB / 350.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.0004885/0.1284, allocations: 0.9211 MB / 471.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001462/0.1285, allocations: 84.58 kB / 472 MB, free: 9.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1286, allocations: 192 / 472 MB, free: 9.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.383e-05/0.1286, allocations: 32.58 kB / 472.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.129, allocations: 52.42 kB / 472.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.1314, allocations: 3.453 MB / 475.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1317, allocations: 0.7716 MB / 476.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.613e-05/0.1318, allocations: 26.28 kB / 476.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.876e-05/0.1319, allocations: 75.41 kB / 476.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1319, allocations: 0 / 476.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02436/0.1563, allocations: 3.854 MB / 480.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/0.1565, allocations: 186.8 kB / 480.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/1.747, allocations: 3.938 kB / 480.5 MB, free: 1.375 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat does not exist to compare? outputFormat=mat