Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.0008855/0.0008856, allocations: 91.86 kB / 16.31 MB, free: 5.551 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.001016/0.001016, allocations: 181.8 kB / 17.21 MB, free: 5.469 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.504/1.504, allocations: 205.4 MB / 223.4 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1823/0.1823, allocations: 38.04 MB / 309.7 MB, free: 6.016 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.0005242/0.0005242, allocations: 16 kB / 376.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2974, allocations: 56.33 MB / 433 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.003953/0.3014, allocations: 4.377 MB / 437.3 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.3027, allocations: 1.139 MB / 438.5 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.3029, allocations: 19.88 kB / 438.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.3031, allocations: 63.47 kB / 438.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004848/0.3036, allocations: 262.8 kB / 438.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001986/0.3038, allocations: 111.8 kB / 438.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004559/0.3043, allocations: 0.627 MB / 439.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.3045, allocations: 93.78 kB / 439.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.3047, allocations: 187.1 kB / 439.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.305, allocations: 267.2 kB / 440.1 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.049e-05/0.3051, allocations: 12 kB / 440.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.011e-05/0.3051, allocations: 12 kB / 440.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.3052, allocations: 139.6 kB / 440.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.796e-05/0.3053, allocations: 89.52 kB / 440.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.3055, allocations: 271.3 kB / 440.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3055, allocations: 0 / 440.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3056, allocations: 0 / 440.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.3056, allocations: 0 / 440.6 MB, free: 11.11 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008592/0.3064, allocations: 0.6009 MB / 441.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3065, allocations: 8.031 kB / 441.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.114e-05/0.3065, allocations: 70.48 kB / 441.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.3066, allocations: 35.53 kB / 441.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000398/0.307, allocations: 354.6 kB / 441.7 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.307, allocations: 16.56 kB / 441.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.3071, allocations: 24 kB / 441.7 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.3075, allocations: 356.7 kB / 442 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3076, allocations: 0 / 442 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.376e-05/0.3076, allocations: 12 kB / 442.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.983e-05/0.3077, allocations: 28.48 kB / 442.1 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003216/0.308, allocations: 245.9 kB / 442.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.3093, allocations: 1.37 MB / 443.7 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.3096, allocations: 164.5 kB / 443.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3097, allocations: 101.7 kB / 443.9 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.3098, allocations: 12.2 kB / 444 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.3098, allocations: 34.55 kB / 444 MB, free: 7.469 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.253e-06/0.3098, allocations: 0 / 444 MB, free: 7.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001071/0.3109, allocations: 0.7636 MB / 444.8 MB, free: 6.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.3109, allocations: 77.11 kB / 444.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.3112, allocations: 292.5 kB / 445.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.3112, allocations: 33.7 kB / 445.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3113, allocations: 215.5 kB / 445.4 MB, free: 5.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.3113, allocations: 51.28 kB / 445.4 MB, free: 5.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/0.3113, allocations: 8 kB / 445.4 MB, free: 5.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.821e-05/0.3114, allocations: 342.8 kB / 445.8 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.757e-05/0.3115, allocations: 60 kB / 445.8 MB, free: 5.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.3117, allocations: 172.8 kB / 446 MB, free: 5.305 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.3118, allocations: 83.97 kB / 446.1 MB, free: 5.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3118, allocations: 15.89 kB / 446.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000405/0.3122, allocations: 325.5 kB / 446.4 MB, free: 4.879 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.3122, allocations: 4 kB / 446.4 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3122, allocations: 4.438 kB / 446.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.3124, allocations: 52.81 kB / 446.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.3126, allocations: 47.92 kB / 446.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009585/0.3136, allocations: 1.495 MB / 448 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.3137, allocations: 15.98 kB / 448 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.3137, allocations: 8 kB / 448 MB, free: 3.117 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 (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001373/0.3139, allocations: 173.7 kB / 448.2 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.3139, allocations: 23.72 kB / 448.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003669/0.3143, allocations: 244.3 kB / 448.5 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3143, allocations: 0 / 448.5 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3143, allocations: 4 kB / 448.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3143, allocations: 0 / 448.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006592/0.315, allocations: 0.6366 MB / 449.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.315, allocations: 0 / 449.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.061e-05/0.3151, allocations: 27.92 kB / 449.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001526/0.3153, allocations: 68.69 kB / 449.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.3153, allocations: 3.984 kB / 449.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008493/0.3161, allocations: 1.487 MB / 450.7 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3161, allocations: 0 / 450.7 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004649/0.3166, allocations: 402 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.275e-05/0.3167, allocations: 101 kB / 451.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.3167, allocations: 11.94 kB / 451.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.3169, allocations: 15.98 kB / 451.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.94e-05/0.3169, allocations: 11.92 kB / 451.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.3169, allocations: 8 kB / 451.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001879/0.3171, allocations: 207.1 kB / 451.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3171, allocations: 0 / 451.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.3175, allocations: 68 kB / 451.5 MB, free: 15.39 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007904/0.3183, allocations: 0.937 MB / 452.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004872/0.3188, allocations: 293.8 kB / 452.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3188, allocations: 3.938 kB / 452.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.3192, allocations: 206.5 kB / 452.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/0.3197, allocations: 57.14 kB / 453 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.3226, allocations: 1.989 MB / 455 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.323, allocations: 0.8104 MB / 455.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001584/0.3232, allocations: 42.94 kB / 455.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.3234, allocations: 99.41 kB / 455.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3234, allocations: 0 / 455.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01819/0.3416, allocations: 5.687 MB / 461.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.3418, allocations: 207.7 kB / 461.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.212, allocations: 64 / 461.8 MB, free: 4.898 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) Environment - environmentSimulation: