Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.000818/0.0008181, allocations: 87.11 kB / 16.31 MB, free: 6.449 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.0008967/0.0008969, allocations: 177.1 kB / 17.21 MB, free: 6.32 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.442/1.442, allocations: 223.2 MB / 241.2 MB, free: 296 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1879/0.1879, allocations: 38.09 MB / 330.4 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003696, allocations: 9.094 kB / 400.2 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1153, allocations: 59.18 MB / 459.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.00608/0.1215, allocations: 4.138 MB / 463.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1235, allocations: 1.041 MB / 464.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.1237, allocations: 23.81 kB / 464.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.124, allocations: 51.55 kB / 464.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006736/0.1247, allocations: 206.9 kB / 464.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003403/0.125, allocations: 111.8 kB / 464.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/0.1255, allocations: 434.5 kB / 465.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.1258, allocations: 89.11 kB / 465.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.126, allocations: 143.3 kB / 465.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002997/0.1264, allocations: 175.3 kB / 465.7 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.186e-05/0.1264, allocations: 12 kB / 465.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.741e-05/0.1264, allocations: 19.94 kB / 465.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.08e-05/0.1265, allocations: 83.7 kB / 465.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.624e-05/0.1266, allocations: 73.58 kB / 465.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.1269, allocations: 203.5 kB / 466.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1269, allocations: 0 / 466.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1269, allocations: 0 / 466.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1269, allocations: 0 / 466.1 MB, free: 0.5195 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009051/0.1278, allocations: 0.5542 MB / 466.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1279, allocations: 12.02 kB / 466.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.173e-05/0.1279, allocations: 54.55 kB / 466.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.574e-05/0.128, allocations: 35.56 kB / 466.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.1284, allocations: 317.8 kB / 467.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.1285, allocations: 20.38 kB / 467.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.1285, allocations: 16 kB / 467.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/0.1289, allocations: 294.8 kB / 467.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.129, allocations: 3.938 kB / 467.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.129, allocations: 4 kB / 467.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.485e-06/0.129, allocations: 8 kB / 467.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002898/0.1293, allocations: 181 kB / 467.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.1307, allocations: 1.232 MB / 468.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.1311, allocations: 109.2 kB / 468.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.858e-05/0.1312, allocations: 45.75 kB / 469 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.1312, allocations: 7.938 kB / 469 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.1312, allocations: 34.56 kB / 469 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.1313, allocations: 0 / 469 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008944/0.1322, allocations: 481 kB / 469.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.1322, allocations: 77.3 kB / 469.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.1325, allocations: 250.8 kB / 469.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.1326, allocations: 37.58 kB / 469.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.1327, allocations: 199.5 kB / 470 MB, free: 12.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.304e-05/0.1328, allocations: 35.55 kB / 470.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-06/0.1328, allocations: 4 kB / 470.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1329, allocations: 330.8 kB / 470.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.717e-05/0.133, allocations: 35.98 kB / 470.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.1331, allocations: 128.9 kB / 470.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.1333, allocations: 67.88 kB / 470.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1333, allocations: 0 / 470.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002964/0.1336, allocations: 205 kB / 470.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1336, allocations: 7.938 kB / 470.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.1336, allocations: 4 kB / 470.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1336, allocations: 11.94 kB / 470.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.1338, allocations: 43.92 kB / 470.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.1338, allocations: 4 kB / 470.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.1339, allocations: 8.438 kB / 470.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.134, allocations: 15.98 kB / 470.9 MB, free: 11.3 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 (24): * Single equations (assignments): 24 * 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.0001621/0.1341, allocations: 161.7 kB / 471.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.291e-05/0.1342, allocations: 23.72 kB / 471.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002415/0.1344, allocations: 123.4 kB / 471.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1345, allocations: 4 kB / 471.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1345, allocations: 0 / 471.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1345, allocations: 0 / 471.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006011/0.1351, allocations: 495.1 kB / 471.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1351, allocations: 0 / 471.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.1352, allocations: 23.92 kB / 471.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1352, allocations: 4 kB / 471.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.1353, allocations: 4 kB / 471.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1353, allocations: 4 kB / 471.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1353, allocations: 0 / 471.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.1356, allocations: 280.5 kB / 472 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/0.1357, allocations: 104.7 kB / 472.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.1357, allocations: 8 kB / 472.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.467e-05/0.1358, allocations: 0 / 472.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.756e-05/0.1358, allocations: 7.984 kB / 472.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.1359, allocations: 8 kB / 472.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001524/0.136, allocations: 170 kB / 472.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.136, allocations: 4.062 kB / 472.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.1363, allocations: 44 kB / 472.4 MB, free: 9.746 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 (13): * Single equations (assignments): 12 * 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.000571/0.1369, allocations: 0.8075 MB / 473.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002042/0.1371, allocations: 115.8 kB / 473.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1371, allocations: 0 / 473.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.7e-05/0.1372, allocations: 43.92 kB / 473.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.1377, allocations: 45.53 kB / 473.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.14, allocations: 1.483 MB / 474.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.1404, allocations: 0.7794 MB / 475.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.1406, allocations: 38.2 kB / 475.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.1407, allocations: 79.84 kB / 475.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1407, allocations: 0 / 475.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.1576, allocations: 4.296 MB / 480 MB, free: 2.09 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/0.1579, allocations: 195.8 kB / 480.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/1.956, allocations: 0 / 480.2 MB, free: 1.852 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat does not exist to compare? outputFormat=mat