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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001094/0.001094, allocations: 104.3 kB / 16.62 MB, free: 6.805 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.00113/0.00113, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.195/1.195, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1585/0.1585, allocations: 38.02 MB / 329.4 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 62.69 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07722/0.07839, allocations: 58.07 MB / 456.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004876/0.08328, allocations: 4.714 MB / 461.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.0846, allocations: 1.087 MB / 462.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.08477, allocations: 23.81 kB / 462.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.08493, allocations: 31.75 kB / 462.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003686/0.0853, allocations: 171.1 kB / 462.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001582/0.08547, allocations: 83.86 kB / 462.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003414/0.08582, allocations: 402.5 kB / 462.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.08602, allocations: 122.2 kB / 463.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.08622, allocations: 171.2 kB / 463.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.08649, allocations: 191.3 kB / 463.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.08653, allocations: 20 kB / 463.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.918e-05/0.08657, allocations: 23.94 kB / 463.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.798e-05/0.08667, allocations: 91.72 kB / 463.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.08679, allocations: 143.2 kB / 463.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.08702, allocations: 283 kB / 464 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.08703, allocations: 0 / 464 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08704, allocations: 0 / 464 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.08705, allocations: 0 / 464 MB, free: 0.7617 MB / 334.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.0007771/0.08783, allocations: 0.597 MB / 464.6 MB, free: 120 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.08787, allocations: 15.89 kB / 464.6 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.309e-05/0.08793, allocations: 58.72 kB / 464.6 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.08798, allocations: 32.56 kB / 464.7 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.08835, allocations: 315 kB / 465 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.08837, allocations: 24.38 kB / 465 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.08842, allocations: 20 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.08879, allocations: 294.8 kB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.0888, allocations: 0 / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.08883, allocations: 16 kB / 465.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.08885, allocations: 4 kB / 465.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002599/0.08911, allocations: 184.9 kB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.09025, allocations: 1.228 MB / 466.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.09052, allocations: 109.2 kB / 466.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.41e-05/0.09059, allocations: 41.77 kB / 466.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.09062, allocations: 8 kB / 466.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.09065, allocations: 38.5 kB / 466.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.09065, allocations: 0 / 466.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006913/0.09135, allocations: 485 kB / 467.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.09139, allocations: 77.11 kB / 467.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.09159, allocations: 258.7 kB / 467.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.09161, allocations: 25.7 kB / 467.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.09172, allocations: 199.6 kB / 468 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.09176, allocations: 43.45 kB / 468 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.329e-05/0.09181, allocations: 41.61 kB / 468 MB, free: 12.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.618e-05/0.09192, allocations: 334.8 kB / 468.4 MB, free: 12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.093e-05/0.09198, allocations: 31.98 kB / 468.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.0921, allocations: 139.6 kB / 468.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.09229, allocations: 188.6 kB / 468.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.0923, allocations: 4 kB / 468.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002568/0.09256, allocations: 209.1 kB / 468.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.09258, allocations: 4 kB / 468.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.09259, allocations: 4 kB / 468.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.0926, allocations: 4 kB / 468.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.09276, allocations: 55.89 kB / 469 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.09277, allocations: 4 kB / 469 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.09288, allocations: 15.88 kB / 469 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.0929, allocations: 8.344 kB / 469 MB, free: 11.25 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.09302, allocations: 154.9 kB / 469.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.044e-05/0.09306, allocations: 27.7 kB / 469.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001994/0.09327, allocations: 131.3 kB / 469.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.09328, allocations: 7.938 kB / 469.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.09329, allocations: 0 / 469.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.0933, allocations: 3.938 kB / 469.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004411/0.09374, allocations: 483.2 kB / 469.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.09376, allocations: 0 / 469.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.09387, allocations: 24 kB / 469.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.09389, allocations: 3.984 kB / 469.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.0939, allocations: 3.938 kB / 469.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.09391, allocations: 4 kB / 469.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.09391, allocations: 0 / 469.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.09419, allocations: 278.9 kB / 470.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.201e-05/0.09425, allocations: 96.86 kB / 470.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.838e-05/0.09428, allocations: 3.938 kB / 470.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.09439, allocations: 15.98 kB / 470.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.756e-05/0.09441, allocations: 4 kB / 470.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.09443, allocations: 4 kB / 470.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.09456, allocations: 177.9 kB / 470.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09456, allocations: 0 / 470.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.09485, allocations: 48.06 kB / 470.5 MB, free: 9.703 MB / 350.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 (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.0004764/0.09533, allocations: 0.8147 MB / 471.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.09554, allocations: 119.9 kB / 471.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.09555, allocations: 0 / 471.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.635e-05/0.09562, allocations: 43.92 kB / 471.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.09604, allocations: 56.7 kB / 471.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.09825, allocations: 2.542 MB / 474 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.09854, allocations: 0.7752 MB / 474.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.09866, allocations: 30.28 kB / 474.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.09877, allocations: 83.39 kB / 474.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09878, allocations: 0 / 474.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05529/0.1541, allocations: 4.438 MB / 479.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/0.1543, allocations: 206.2 kB / 479.6 MB, free: 464 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/1.924, allocations: 0 / 479.6 MB, free: 464 kB / 350.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/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)