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.001249/0.001249, allocations: 89.12 kB / 16.3 MB, free: 6.457 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.001467/0.001467, allocations: 179.6 kB / 17.2 MB, free: 6.34 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.629/1.629, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1861/0.1861, allocations: 38.03 MB / 309.7 MB, free: 6.137 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.0007922/0.0007923, allocations: 16 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.315, allocations: 56.32 MB / 432.9 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.003912/0.319, allocations: 3.998 MB / 436.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.3204, allocations: 1.112 MB / 438 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.3206, allocations: 23.81 kB / 438 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.3208, allocations: 51.59 kB / 438.1 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004151/0.3212, allocations: 187.4 kB / 438.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.3214, allocations: 111.8 kB / 438.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002453/0.3217, allocations: 227.5 kB / 438.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.3219, allocations: 81.12 kB / 438.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.3221, allocations: 143.5 kB / 438.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.3223, allocations: 131.5 kB / 438.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.3224, allocations: 12 kB / 439 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.365e-05/0.3224, allocations: 12 kB / 439 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.222e-05/0.3225, allocations: 75.73 kB / 439 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.719e-05/0.3225, allocations: 73.58 kB / 439.1 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.3227, allocations: 211.4 kB / 439.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3227, allocations: 0 / 439.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3227, allocations: 7.938 kB / 439.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.3227, allocations: 0 / 439.3 MB, free: 12.38 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.0007895/0.3235, allocations: 0.5464 MB / 439.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3236, allocations: 8.031 kB / 439.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.465e-05/0.3237, allocations: 58.55 kB / 439.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.082e-05/0.3237, allocations: 39.58 kB / 440 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.3241, allocations: 305.9 kB / 440.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.3242, allocations: 16.44 kB / 440.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.3242, allocations: 19.94 kB / 440.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.3245, allocations: 286.8 kB / 440.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3246, allocations: 3.938 kB / 440.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.3246, allocations: 8 kB / 440.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.3246, allocations: 7.953 kB / 440.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.3249, allocations: 177 kB / 440.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.3259, allocations: 1.236 MB / 442 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.3262, allocations: 113.2 kB / 442.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.3263, allocations: 0 / 442.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.3263, allocations: 38.75 kB / 442.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.3263, allocations: 0 / 442.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007508/0.327, allocations: 493 kB / 442.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.3271, allocations: 85.06 kB / 442.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.3273, allocations: 238.7 kB / 443 MB, free: 8.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.3273, allocations: 29.7 kB / 443 MB, free: 8.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.935e-05/0.3274, allocations: 195.6 kB / 443.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.3274, allocations: 47.33 kB / 443.2 MB, free: 8.137 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.3274, allocations: 4 kB / 443.2 MB, free: 8.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.266e-05/0.3275, allocations: 330.8 kB / 443.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.767e-05/0.3276, allocations: 40.02 kB / 443.6 MB, free: 7.762 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.498e-05/0.3277, allocations: 128.7 kB / 443.7 MB, free: 7.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.982e-05/0.3278, allocations: 59.92 kB / 443.8 MB, free: 7.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3278, allocations: 8 kB / 443.8 MB, free: 7.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002399/0.328, allocations: 197 kB / 444 MB, free: 7.324 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.328, allocations: 8 kB / 444 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.3281, allocations: 4 kB / 444 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.3281, allocations: 4.438 kB / 444 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.3282, allocations: 51.92 kB / 444.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.3283, allocations: 11.89 kB / 444.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.3284, allocations: 4 kB / 444.1 MB, free: 7.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.3284, allocations: 15.98 kB / 444.1 MB, free: 7.227 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.0001174/0.3285, allocations: 149.8 kB / 444.2 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.805e-05/0.3286, allocations: 23.72 kB / 444.3 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002081/0.3288, allocations: 130.8 kB / 444.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3288, allocations: 8 kB / 444.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3288, allocations: 0 / 444.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3288, allocations: 3.953 kB / 444.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004411/0.3292, allocations: 479.5 kB / 444.9 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3293, allocations: 4 kB / 444.9 MB, free: 6.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.3294, allocations: 27.91 kB / 444.9 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.3294, allocations: 7.938 kB / 444.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3294, allocations: 4 kB / 444.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3294, allocations: 3.953 kB / 444.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3294, allocations: 8.031 kB / 444.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.3297, allocations: 294.9 kB / 445.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.751e-05/0.3297, allocations: 100.8 kB / 445.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.3298, allocations: 7.938 kB / 445.3 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.519e-05/0.3299, allocations: 8.062 kB / 445.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.626e-05/0.3299, allocations: 11.92 kB / 445.3 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.3299, allocations: 4 kB / 445.3 MB, free: 5.855 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001289/0.3301, allocations: 170 kB / 445.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3301, allocations: 0 / 445.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.3304, allocations: 48 kB / 445.5 MB, free: 5.645 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.0004354/0.3308, allocations: 0.968 MB / 446.5 MB, free: 4.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001806/0.331, allocations: 108.6 kB / 446.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.331, allocations: 0 / 446.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.111e-05/0.3311, allocations: 47.92 kB / 446.7 MB, free: 4.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.3315, allocations: 56.98 kB / 446.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.3335, allocations: 3.584 MB / 450.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.3337, allocations: 0.7795 MB / 451.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.3339, allocations: 34.28 kB / 451.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.334, allocations: 83.41 kB / 451.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.334, allocations: 0 / 451.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.3508, allocations: 4.26 MB / 455.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.351, allocations: 182.1 kB / 455.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.006, allocations: 3.938 kB / 455.6 MB, free: 11.36 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: