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.0007357/0.0007357, allocations: 91.97 kB / 16.65 MB, free: 6.59 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.0009177/0.0009177, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.478/1.478, allocations: 205.4 MB / 223.7 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.1643/0.1643, allocations: 38.05 MB / 310.1 MB, free: 5.91 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.0004752/0.0004752, allocations: 12 kB / 377.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2416, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.004161/0.2458, allocations: 4.835 MB / 438.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.2479, allocations: 1.676 MB / 440.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002162/0.2481, allocations: 27.81 kB / 440.1 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.2483, allocations: 59.55 kB / 440.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004746/0.2488, allocations: 227 kB / 440.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005033/0.2493, allocations: 219.6 kB / 440.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.2499, allocations: 0.8458 MB / 441.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007556/0.2507, allocations: 0.5883 MB / 442.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.2509, allocations: 203.1 kB / 442.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000381/0.2513, allocations: 311 kB / 442.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.779e-05/0.2514, allocations: 20 kB / 442.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.2516, allocations: 135.7 kB / 442.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.2518, allocations: 207.5 kB / 442.9 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.252, allocations: 248.4 kB / 443.2 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004161/0.2524, allocations: 0.5606 MB / 443.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2524, allocations: 4 kB / 443.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2524, allocations: 0 / 443.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.2524, allocations: 4 kB / 443.7 MB, free: 8.438 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.0009798/0.2534, allocations: 0.688 MB / 444.4 MB, free: 7.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2534, allocations: 8.031 kB / 444.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.036e-05/0.2535, allocations: 94.7 kB / 444.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005183/0.254, allocations: 88.22 kB / 444.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.2545, allocations: 400.1 kB / 445 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.2545, allocations: 29.38 kB / 445 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.2546, allocations: 55.92 kB / 445.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007114/0.2554, allocations: 0.645 MB / 445.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.2554, allocations: 15.78 kB / 445.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.2554, allocations: 19.98 kB / 445.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-05/0.2555, allocations: 32.98 kB / 445.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.2561, allocations: 479.5 kB / 446.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.2584, allocations: 3.014 MB / 449.3 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/0.2587, allocations: 181 kB / 449.5 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.2588, allocations: 109.7 kB / 449.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.2588, allocations: 4 kB / 449.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.2589, allocations: 38.56 kB / 449.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.472e-06/0.2589, allocations: 0 / 449.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001071/0.2599, allocations: 0.8435 MB / 450.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.26, allocations: 81.11 kB / 450.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.2602, allocations: 345.7 kB / 450.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.2603, allocations: 33.7 kB / 450.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.2604, allocations: 302.9 kB / 451.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.557e-05/0.2605, allocations: 78.98 kB / 451.3 MB, free: 464 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.817e-05/0.2605, allocations: 45.69 kB / 451.3 MB, free: 412 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.42e-05/0.2606, allocations: 342.8 kB / 451.6 MB, free: 60 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.2608, allocations: 124.8 kB / 451.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003321/0.2611, allocations: 330.8 kB / 452.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005732/0.2617, allocations: 0.4978 MB / 452.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.2617, allocations: 7.938 kB / 452.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009226/0.2626, allocations: 0.5481 MB / 453.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.2627, allocations: 8.812 kB / 453.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000487/0.2632, allocations: 276.4 kB / 453.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003178/0.2635, allocations: 80.78 kB / 453.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.2638, allocations: 95.83 kB / 453.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.2653, allocations: 1.612 MB / 455.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.2655, allocations: 23.94 kB / 455.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.2655, allocations: 31.98 kB / 455.3 MB, free: 12.09 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 (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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.2657, allocations: 209.7 kB / 455.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.381e-05/0.2658, allocations: 39.67 kB / 455.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004306/0.2662, allocations: 288.8 kB / 455.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2662, allocations: 4 kB / 455.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.2663, allocations: 0 / 455.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.2663, allocations: 3.984 kB / 455.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.2673, allocations: 0.8004 MB / 456.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2673, allocations: 0 / 456.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.2676, allocations: 59.84 kB / 456.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2676, allocations: 0 / 456.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.2676, allocations: 8 kB / 456.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.289e-06/0.2676, allocations: 7.938 kB / 456.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2676, allocations: 0 / 456.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005296/0.2682, allocations: 485.3 kB / 457.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.296e-05/0.2683, allocations: 104.6 kB / 457.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.2683, allocations: 12.03 kB / 457.3 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.2685, allocations: 4 kB / 457.3 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.2685, allocations: 23.91 kB / 457.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.2685, allocations: 4 kB / 457.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003151/0.2688, allocations: 239.2 kB / 457.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2689, allocations: 0 / 457.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004081/0.2693, allocations: 96 kB / 457.6 MB, free: 9.609 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009105/0.2702, allocations: 1.007 MB / 458.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006737/0.2709, allocations: 440.7 kB / 459.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2709, allocations: 0 / 459.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.271, allocations: 115.9 kB / 459.2 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004848/0.2715, allocations: 61.34 kB / 459.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004904/0.2764, allocations: 4.266 MB / 463.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.2769, allocations: 0.8659 MB / 464.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000285/0.2772, allocations: 115.2 kB / 464.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.2774, allocations: 147.4 kB / 464.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2774, allocations: 0 / 464.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01935/0.2968, allocations: 6.895 MB / 471.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/0.297, allocations: 219.4 kB / 471.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.111, allocations: 0 / 471.7 MB, free: 11.16 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/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)