Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001593/0.001593, allocations: 187.2 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.4 MB / 221.9 MB, free: 13.79 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 90.86 kB / 270.2 MB, free: 13.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2622/0.2622, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004551/0.0004552, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1095, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006632/0.1162, allocations: 3.998 MB / 483.1 MB, free: 13.91 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002809/0.119, allocations: 1.104 MB / 484.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003615/0.1195, allocations: 23.81 kB / 484.3 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.1197, allocations: 51.59 kB / 484.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007342/0.1204, allocations: 187.4 kB / 484.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.1209, allocations: 111.8 kB / 484.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.1215, allocations: 227.5 kB / 484.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002805/0.1218, allocations: 85.12 kB / 484.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000397/0.1222, allocations: 127.5 kB / 485 MB, free: 12 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000378/0.1226, allocations: 139.5 kB / 485.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.1226, allocations: 15.98 kB / 485.2 MB, free: 11.85 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.1227, allocations: 8 kB / 485.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.1229, allocations: 71.75 kB / 485.3 MB, free: 11.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.123, allocations: 77.52 kB / 485.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.1233, allocations: 207.5 kB / 485.5 MB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.1234, allocations: 0 / 485.5 MB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.248e-06/0.1234, allocations: 3.984 kB / 485.5 MB, free: 11.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1234, allocations: 0 / 485.5 MB, free: 11.48 MB / 330.7 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.001359/0.1247, allocations: 0.5503 MB / 486.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.1248, allocations: 8.031 kB / 486.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.1249, allocations: 58.53 kB / 486.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.15e-05/0.125, allocations: 35.58 kB / 486.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.1258, allocations: 309.8 kB / 486.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.1258, allocations: 20.38 kB / 486.5 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.919e-05/0.1259, allocations: 24 kB / 486.5 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006715/0.1266, allocations: 286.8 kB / 486.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1266, allocations: 3.938 kB / 486.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.1266, allocations: 12 kB / 486.8 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1267, allocations: 11.95 kB / 486.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005061/0.1272, allocations: 177 kB / 487 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1293, allocations: 1.22 MB / 488.2 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004322/0.1298, allocations: 113.1 kB / 488.4 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.1298, allocations: 0 / 488.4 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.1299, allocations: 46.73 kB / 488.4 MB, free: 8.387 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.074e-06/0.1299, allocations: 0 / 488.4 MB, free: 8.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.00118/0.1311, allocations: 484.3 kB / 488.9 MB, free: 7.859 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.1312, allocations: 85.06 kB / 489 MB, free: 7.758 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.1315, allocations: 246.8 kB / 489.2 MB, free: 7.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.1316, allocations: 25.7 kB / 489.2 MB, free: 7.469 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.1318, allocations: 258 kB / 489.5 MB, free: 7.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.533e-05/0.1318, allocations: 35.45 kB / 489.5 MB, free: 7.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.619e-05/0.1318, allocations: 8 kB / 489.5 MB, free: 7.172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.132, allocations: 318.8 kB / 489.8 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1321, allocations: 39.92 kB / 489.9 MB, free: 6.812 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.1323, allocations: 128.7 kB / 490 MB, free: 6.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.1325, allocations: 55.92 kB / 490 MB, free: 6.586 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.1325, allocations: 4.75 kB / 490.1 MB, free: 6.582 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005119/0.133, allocations: 193.2 kB / 490.2 MB, free: 6.387 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.1331, allocations: 4.094 kB / 490.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.1331, allocations: 7.938 kB / 490.3 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.1331, allocations: 8 kB / 490.3 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.1335, allocations: 39.92 kB / 490.3 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/0.1335, allocations: 11.89 kB / 490.3 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.1337, allocations: 12.42 kB / 490.3 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.1338, allocations: 16 kB / 490.3 MB, free: 6.289 MB / 330.7 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.0002264/0.134, allocations: 149.7 kB / 490.5 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.388e-05/0.1341, allocations: 23.72 kB / 490.5 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000387/0.1345, allocations: 131.3 kB / 490.6 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.1345, allocations: 4 kB / 490.6 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1345, allocations: 0 / 490.6 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1345, allocations: 3.953 kB / 490.6 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008714/0.1354, allocations: 487.2 kB / 491.1 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1354, allocations: 0 / 491.1 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/0.1357, allocations: 27.92 kB / 491.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.1357, allocations: 0 / 491.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1358, allocations: 0 / 491.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.1358, allocations: 7.953 kB / 491.2 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1358, allocations: 0 / 491.2 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005548/0.1364, allocations: 304.3 kB / 491.5 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.1365, allocations: 108.8 kB / 491.6 MB, free: 4.941 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.1365, allocations: 4 kB / 491.6 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1367, allocations: 0 / 491.6 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.1368, allocations: 15.92 kB / 491.6 MB, free: 4.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.1368, allocations: 4 kB / 491.6 MB, free: 4.918 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002384/0.137, allocations: 174 kB / 491.8 MB, free: 4.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1371, allocations: 0 / 491.8 MB, free: 4.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004711/0.1375, allocations: 44 kB / 491.8 MB, free: 4.707 MB / 330.7 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.0008939/0.1384, allocations: 0.9752 MB / 492.8 MB, free: 3.695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003547/0.1388, allocations: 107.8 kB / 492.9 MB, free: 3.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1388, allocations: 0.9375 kB / 492.9 MB, free: 3.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.139, allocations: 39.92 kB / 492.9 MB, free: 3.551 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005713/0.1396, allocations: 56.73 kB / 493 MB, free: 3.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004092/0.1437, allocations: 3.633 MB / 496.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.1442, allocations: 0.7794 MB / 497.4 MB, free: 14.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.1444, allocations: 83.39 kB / 497.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/0.1444, allocations: 0 / 497.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.445/2.59, allocations: 4.116 MB / 0.4898 GB, free: 10.72 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)