Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.0008643/0.0008644, allocations: 88.16 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.000993/0.000993, allocations: 182 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.596/1.596, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1797/0.1797, allocations: 38.04 MB / 309.7 MB, free: 6.102 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.0005322/0.0005322, allocations: 19.12 kB / 376.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3073, allocations: 56.31 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.004895/0.3123, allocations: 4.607 MB / 437.5 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.3149, allocations: 1.591 MB / 439.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002602/0.3152, allocations: 23.81 kB / 439.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.3154, allocations: 87.31 kB / 439.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006495/0.3161, allocations: 262.7 kB / 439.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006336/0.3167, allocations: 243.5 kB / 439.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004973/0.3172, allocations: 0.6624 MB / 440.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007295/0.318, allocations: 0.5421 MB / 440.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002451/0.3182, allocations: 215 kB / 441.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/0.3186, allocations: 307 kB / 441.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.795e-05/0.3187, allocations: 20 kB / 441.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001967/0.3189, allocations: 91.88 kB / 441.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.319, allocations: 207.5 kB / 441.8 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.201e-05/0.3191, allocations: 113.5 kB / 441.9 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003461/0.3195, allocations: 439 kB / 442.3 MB, free: 9.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3195, allocations: 0 / 442.3 MB, free: 9.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3195, allocations: 0 / 442.3 MB, free: 9.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.3195, allocations: 0 / 442.3 MB, free: 9.375 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001136/0.3207, allocations: 0.6995 MB / 443 MB, free: 8.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.3207, allocations: 8.031 kB / 443 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.97e-05/0.3208, allocations: 90.52 kB / 443.1 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005402/0.3214, allocations: 91.28 kB / 443.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005375/0.3219, allocations: 387 kB / 443.6 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.322, allocations: 32.98 kB / 443.6 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.3221, allocations: 47.98 kB / 443.6 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007502/0.3229, allocations: 0.645 MB / 444.3 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.3229, allocations: 7.938 kB / 444.3 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.105e-05/0.3229, allocations: 19.98 kB / 444.3 MB, free: 7.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.612e-05/0.3231, allocations: 28.98 kB / 444.3 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.3237, allocations: 483.4 kB / 444.8 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002504/0.3262, allocations: 3.022 MB / 447.8 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.3264, allocations: 185 kB / 448 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.3266, allocations: 102.2 kB / 448.1 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.3266, allocations: 8 kB / 448.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.3266, allocations: 30.91 kB / 448.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.352e-06/0.3266, allocations: 0 / 448.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001141/0.3278, allocations: 0.8466 MB / 449 MB, free: 2.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.3278, allocations: 81.06 kB / 449.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.3281, allocations: 349.5 kB / 449.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.3281, allocations: 29.7 kB / 449.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3282, allocations: 303 kB / 449.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/0.3283, allocations: 70.92 kB / 449.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.711e-05/0.3283, allocations: 12 kB / 449.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.548e-05/0.3284, allocations: 346.9 kB / 450.2 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3286, allocations: 128.8 kB / 450.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002937/0.3289, allocations: 327 kB / 450.6 MB, free: 0.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.3291, allocations: 195.7 kB / 450.8 MB, free: 316 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3291, allocations: 8 kB / 450.8 MB, free: 308 kB / 318.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009828/0.3301, allocations: 0.5453 MB / 451.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3301, allocations: 8 kB / 451.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000507/0.3307, allocations: 280.6 kB / 451.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003307/0.331, allocations: 81.42 kB / 451.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.3313, allocations: 99.81 kB / 451.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.333, allocations: 1.601 MB / 453.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.3333, allocations: 23.94 kB / 453.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.3333, allocations: 20 kB / 453.5 MB, free: 13.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002882/0.3336, allocations: 217.6 kB / 453.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.3337, allocations: 35.52 kB / 453.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005255/0.3342, allocations: 296.8 kB / 454 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3342, allocations: 0 / 454 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3342, allocations: 4 kB / 454 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3343, allocations: 0 / 454 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.3355, allocations: 0.794 MB / 454.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3355, allocations: 8.062 kB / 454.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002985/0.3359, allocations: 55.91 kB / 454.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3359, allocations: 4 kB / 454.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.3359, allocations: 7.984 kB / 454.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.3359, allocations: 0 / 454.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3359, allocations: 0 / 454.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000602/0.3365, allocations: 485.2 kB / 455.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.962e-05/0.3366, allocations: 108.6 kB / 455.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.3367, allocations: 8 kB / 455.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.3368, allocations: 12.03 kB / 455.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.3369, allocations: 11.98 kB / 455.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.3369, allocations: 12 kB / 455.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002361/0.3371, allocations: 231.2 kB / 455.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3372, allocations: 0 / 455.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004647/0.3376, allocations: 100 kB / 455.8 MB, free: 11.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (24): * Single equations (assignments): 23 * 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.0009131/0.3385, allocations: 1.011 MB / 456.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007302/0.3393, allocations: 443.6 kB / 457.3 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3393, allocations: 4 kB / 457.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.3395, allocations: 108.5 kB / 457.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.34, allocations: 61.39 kB / 457.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003948/0.3439, allocations: 2.673 MB / 460.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00063/0.3446, allocations: 0.8739 MB / 461 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003244/0.3449, allocations: 111.2 kB / 461.1 MB, free: 5.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.3451, allocations: 143.4 kB / 461.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3451, allocations: 0 / 461.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.3674, allocations: 6.978 MB / 468.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.3677, allocations: 204.1 kB / 468.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.318, allocations: 0 / 468.4 MB, free: 14.23 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1) Environment - environmentSimulation: