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.001631/0.001631, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.001849/0.001849, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.494/1.494, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1669/0.1669, allocations: 37.99 MB / 308.6 MB, free: 6.238 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.001351/0.001351, allocations: 63.91 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2351, allocations: 55.25 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.004341/0.2395, allocations: 4.99 MB / 435 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.2408, allocations: 1.177 MB / 436.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.241, allocations: 19.88 kB / 436.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.2411, allocations: 47.62 kB / 436.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000392/0.2415, allocations: 219.1 kB / 436.4 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.2417, allocations: 87.89 kB / 436.5 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/0.2422, allocations: 0.8026 MB / 437.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2424, allocations: 126.9 kB / 437.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.2426, allocations: 191.1 kB / 437.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003125/0.2429, allocations: 279 kB / 437.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/0.243, allocations: 16 kB / 437.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.371e-05/0.243, allocations: 16 kB / 437.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.2432, allocations: 151.6 kB / 438.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.2433, allocations: 163.1 kB / 438.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.2435, allocations: 354.8 kB / 438.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2435, allocations: 0 / 438.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.2435, allocations: 4 kB / 438.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2435, allocations: 0 / 438.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.0008308/0.2444, allocations: 0.6478 MB / 439.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2444, allocations: 12.03 kB / 439.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.605e-05/0.2445, allocations: 66.66 kB / 439.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.271e-05/0.2445, allocations: 36.47 kB / 439.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.2449, allocations: 371.7 kB / 439.7 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.2449, allocations: 24.5 kB / 439.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.245, allocations: 24 kB / 439.7 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.2453, allocations: 352.7 kB / 440.1 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2454, allocations: 3.938 kB / 440.1 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.2454, allocations: 12 kB / 440.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.2455, allocations: 24.53 kB / 440.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.2458, allocations: 246 kB / 440.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.2469, allocations: 1.37 MB / 441.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002572/0.2472, allocations: 165.1 kB / 441.9 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.2474, allocations: 108.8 kB / 442 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.2474, allocations: 0 / 442 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.339e-05/0.2474, allocations: 38.48 kB / 442 MB, free: 7.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/0.2474, allocations: 4 kB / 442.1 MB, free: 7.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009527/0.2484, allocations: 0.7599 MB / 442.8 MB, free: 6.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/0.2484, allocations: 85.05 kB / 442.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.2486, allocations: 296.5 kB / 443.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.2486, allocations: 29.7 kB / 443.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.738e-05/0.2487, allocations: 215.8 kB / 443.4 MB, free: 5.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.2487, allocations: 55.2 kB / 443.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.615e-05/0.2488, allocations: 49.61 kB / 443.5 MB, free: 5.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.133e-05/0.2489, allocations: 342.8 kB / 443.9 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.808e-05/0.249, allocations: 63.97 kB / 443.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.2491, allocations: 168.8 kB / 444.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.2493, allocations: 256.5 kB / 444.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2493, allocations: 4 kB / 444.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003938/0.2497, allocations: 322 kB / 444.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2497, allocations: 8 kB / 444.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2497, allocations: 0 / 444.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001732/0.2499, allocations: 52.81 kB / 444.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.2501, allocations: 51.86 kB / 444.8 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008752/0.251, allocations: 1.491 MB / 446.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.2511, allocations: 11.94 kB / 446.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.2511, allocations: 12 kB / 446.3 MB, free: 2.801 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.2512, allocations: 181.9 kB / 446.5 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.261e-05/0.2513, allocations: 27.62 kB / 446.5 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000322/0.2516, allocations: 232.3 kB / 446.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2516, allocations: 7.938 kB / 446.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2516, allocations: 0 / 446.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2517, allocations: 0 / 446.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006183/0.2523, allocations: 0.6482 MB / 447.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2523, allocations: 4 kB / 447.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.286e-05/0.2524, allocations: 19.94 kB / 447.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.2526, allocations: 56.78 kB / 447.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.2526, allocations: 12 kB / 447.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008143/0.2534, allocations: 1.487 MB / 448.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2534, allocations: 0 / 448.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005255/0.2539, allocations: 409.7 kB / 449.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.763e-05/0.254, allocations: 104.8 kB / 449.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.2541, allocations: 7.984 kB / 449.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.2542, allocations: 7.938 kB / 449.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.2542, allocations: 11.98 kB / 449.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.2543, allocations: 11.94 kB / 449.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001767/0.2544, allocations: 215.1 kB / 449.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2544, allocations: 0 / 449.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.2548, allocations: 64 kB / 449.8 MB, free: 15.05 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000757/0.2556, allocations: 0.942 MB / 450.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005158/0.2561, allocations: 314.6 kB / 451 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2561, allocations: 0.9375 kB / 451 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.2565, allocations: 202.6 kB / 451.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.2569, allocations: 61.08 kB / 451.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.2605, allocations: 3.162 MB / 454.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.2609, allocations: 0.8065 MB / 455.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001625/0.261, allocations: 42.95 kB / 455.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.2612, allocations: 107.3 kB / 455.4 MB, free: 9.168 MB / 334.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2612, allocations: 0 / 455.4 MB, free: 9.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.2785, allocations: 5.754 MB / 461.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/0.2787, allocations: 223.7 kB / 461.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.062, allocations: 0 / 461.4 MB, free: 3.172 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/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)