Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_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.0008849/0.0008852, allocations: 88.72 kB / 16.31 MB, free: 5.684 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.0008882/0.0008882, allocations: 179.5 kB / 17.21 MB, free: 5.602 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.607/1.607, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1932/0.1932, allocations: 38.05 MB / 309.7 MB, free: 6.035 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.0006506/0.0006507, allocations: 16 kB / 376.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3013, allocations: 56.32 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.00374/0.3051, allocations: 4.139 MB / 437.1 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.3064, allocations: 1.092 MB / 438.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.3066, allocations: 23.81 kB / 438.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.3068, allocations: 55.53 kB / 438.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004332/0.3072, allocations: 202.8 kB / 438.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.3075, allocations: 111.9 kB / 438.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003311/0.3078, allocations: 438.4 kB / 439 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.308, allocations: 89.11 kB / 439.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.3082, allocations: 151.3 kB / 439.2 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.3085, allocations: 167.3 kB / 439.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.3085, allocations: 12 kB / 439.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.386e-05/0.3086, allocations: 12 kB / 439.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.121e-05/0.3086, allocations: 83.7 kB / 439.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.185e-05/0.3087, allocations: 73.58 kB / 439.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000185/0.3089, allocations: 207.4 kB / 439.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3089, allocations: 0 / 439.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3089, allocations: 11.88 kB / 439.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.3089, allocations: 0 / 439.8 MB, free: 11.93 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007612/0.3097, allocations: 0.5464 MB / 440.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.3097, allocations: 8.031 kB / 440.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.34e-05/0.3098, allocations: 54.55 kB / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.3099, allocations: 39.58 kB / 440.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.3102, allocations: 305.9 kB / 440.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.3102, allocations: 16.44 kB / 440.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.3103, allocations: 20 kB / 440.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.3106, allocations: 294.8 kB / 441 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3106, allocations: 3.938 kB / 441 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.3106, allocations: 8 kB / 441.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.3107, allocations: 11.95 kB / 441.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002378/0.3109, allocations: 181 kB / 441.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009826/0.3119, allocations: 1.228 MB / 442.5 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.3122, allocations: 109.2 kB / 442.6 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.856e-05/0.3122, allocations: 41.77 kB / 442.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.3123, allocations: 0 / 442.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.3123, allocations: 46.48 kB / 442.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 2.154e-06/0.3123, allocations: 3.984 kB / 442.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006594/0.313, allocations: 489 kB / 443.1 MB, free: 8.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.313, allocations: 81.11 kB / 443.2 MB, free: 8.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.3132, allocations: 242.7 kB / 443.5 MB, free: 7.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.028e-05/0.3132, allocations: 25.7 kB / 443.5 MB, free: 7.879 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.763e-05/0.3133, allocations: 203.5 kB / 443.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.3133, allocations: 43.45 kB / 443.7 MB, free: 7.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-06/0.3133, allocations: 0 / 443.7 MB, free: 7.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.299e-05/0.3134, allocations: 343 kB / 444.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.422e-05/0.3134, allocations: 35.92 kB / 444.1 MB, free: 7.254 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.3136, allocations: 136.7 kB / 444.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.518e-05/0.3136, allocations: 55.92 kB / 444.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3137, allocations: 0 / 444.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002373/0.3139, allocations: 201 kB / 444.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3139, allocations: 4.438 kB / 444.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3139, allocations: 8 kB / 444.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.314, allocations: 4 kB / 444.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.3141, allocations: 51.91 kB / 444.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3141, allocations: 11.89 kB / 444.6 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.64e-05/0.3142, allocations: 8 kB / 444.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.3143, allocations: 8 kB / 444.6 MB, free: 6.723 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 (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.0001122/0.3144, allocations: 149.8 kB / 444.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.3144, allocations: 23.72 kB / 444.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.3146, allocations: 139.2 kB / 444.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3146, allocations: 4 kB / 444.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3146, allocations: 3.984 kB / 444.9 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3147, allocations: 3.953 kB / 444.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/0.3151, allocations: 479.1 kB / 445.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.3151, allocations: 0 / 445.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.3152, allocations: 23.94 kB / 445.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3152, allocations: 4 kB / 445.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.3152, allocations: 4.031 kB / 445.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3152, allocations: 7.938 kB / 445.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3152, allocations: 4 kB / 445.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.3155, allocations: 274.5 kB / 445.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.3155, allocations: 96.8 kB / 445.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.3156, allocations: 4 kB / 445.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.962e-05/0.3157, allocations: 8.062 kB / 445.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.533e-05/0.3157, allocations: 15.88 kB / 445.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.3157, allocations: 4.094 kB / 445.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001106/0.3158, allocations: 177.9 kB / 446 MB, free: 5.219 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3158, allocations: 0 / 446 MB, free: 5.219 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.3161, allocations: 48 kB / 446 MB, free: 5.172 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 (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.0004297/0.3166, allocations: 0.8103 MB / 446.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001936/0.3168, allocations: 104.6 kB / 446.9 MB, free: 4.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3168, allocations: 0 / 446.9 MB, free: 4.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.901e-05/0.3169, allocations: 48.05 kB / 447 MB, free: 4.184 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.3173, allocations: 60.98 kB / 447 MB, free: 4.125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.319, allocations: 1.479 MB / 448.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/0.3192, allocations: 0.7677 MB / 449.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.3194, allocations: 42.27 kB / 449.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.458e-05/0.3195, allocations: 79.41 kB / 449.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3195, allocations: 0 / 449.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.336, allocations: 4.283 MB / 453.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/0.3363, allocations: 195.4 kB / 453.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.124, allocations: 0 / 453.9 MB, free: 13.16 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) Environment - environmentSimulation: