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.0007446/0.0007448, allocations: 89.95 kB / 16.65 MB, free: 6.602 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.0009405/0.0009406, allocations: 183.4 kB / 17.56 MB, free: 6.199 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.202/1.202, 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.1635/0.1635, allocations: 38.06 MB / 310.1 MB, free: 5.914 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.0004836/0.0004836, allocations: 12 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.227, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.003695/0.2307, allocations: 4.339 MB / 437.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.2323, allocations: 1.131 MB / 439.1 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003541/0.2327, allocations: 19.88 kB / 439.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.2329, allocations: 35.7 kB / 439.1 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005264/0.2334, allocations: 163.2 kB / 439.3 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.2337, allocations: 75.92 kB / 439.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004457/0.2341, allocations: 0.5179 MB / 439.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.2344, allocations: 109.7 kB / 440 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.2347, allocations: 147.2 kB / 440.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.235, allocations: 175.3 kB / 440.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.824e-05/0.2351, allocations: 12 kB / 440.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.845e-05/0.2351, allocations: 12 kB / 440.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.507e-05/0.2352, allocations: 79.72 kB / 440.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.2354, allocations: 157 kB / 440.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.2356, allocations: 274.8 kB / 440.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.2356, allocations: 7.984 kB / 440.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2356, allocations: 0 / 440.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.2357, allocations: 0 / 440.8 MB, free: 11.39 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.0008147/0.2365, allocations: 0.5349 MB / 441.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.2365, allocations: 12.03 kB / 441.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.544e-05/0.2366, allocations: 54.73 kB / 441.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.025e-05/0.2367, allocations: 32.56 kB / 441.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.2371, allocations: 322.9 kB / 441.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.2371, allocations: 24.38 kB / 441.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.637e-05/0.2372, allocations: 16 kB / 441.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003554/0.2375, allocations: 302.8 kB / 442.1 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2375, allocations: 0 / 442.1 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.2376, allocations: 11.94 kB / 442.1 MB, free: 9.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.2376, allocations: 4 kB / 442.1 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.2378, allocations: 180.9 kB / 442.3 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.2389, allocations: 1.236 MB / 443.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.2392, allocations: 113.1 kB / 443.7 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.267e-05/0.2393, allocations: 45.77 kB / 443.7 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.2393, allocations: 0 / 443.7 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.2393, allocations: 42.55 kB / 443.7 MB, free: 8.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.2393, allocations: 0 / 443.7 MB, free: 8.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006988/0.24, allocations: 488.3 kB / 444.2 MB, free: 7.699 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.2401, allocations: 77.11 kB / 444.3 MB, free: 7.605 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.2402, allocations: 246.7 kB / 444.5 MB, free: 7.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.2403, allocations: 33.7 kB / 444.6 MB, free: 7.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.214e-05/0.2404, allocations: 199.7 kB / 444.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.32e-05/0.2404, allocations: 39.44 kB / 444.8 MB, free: 7.074 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/0.2404, allocations: 29.7 kB / 444.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.249e-05/0.2405, allocations: 330.8 kB / 445.1 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.629e-05/0.2405, allocations: 35.98 kB / 445.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.19e-05/0.2406, allocations: 136.7 kB / 445.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.2408, allocations: 193.4 kB / 445.5 MB, free: 6.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2408, allocations: 0 / 445.5 MB, free: 6.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000245/0.241, allocations: 205.4 kB / 445.7 MB, free: 6.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2411, allocations: 16 kB / 445.7 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2411, allocations: 4 kB / 445.7 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.2411, allocations: 4 kB / 445.7 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.2413, allocations: 39.92 kB / 445.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.2413, allocations: 8 kB / 445.8 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.2414, allocations: 11.94 kB / 445.8 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.2414, allocations: 11.98 kB / 445.8 MB, free: 5.957 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.853e-05/0.2415, allocations: 153.7 kB / 445.9 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.687e-05/0.2415, allocations: 23.72 kB / 446 MB, free: 5.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001964/0.2417, allocations: 135.3 kB / 446.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2418, allocations: 0 / 446.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2418, allocations: 0 / 446.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2418, allocations: 7.938 kB / 446.1 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000387/0.2422, allocations: 479.2 kB / 446.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2422, allocations: 0 / 446.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.2423, allocations: 27.92 kB / 446.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.2423, allocations: 0 / 446.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.2423, allocations: 11.97 kB / 446.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2423, allocations: 0 / 446.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2423, allocations: 0 / 446.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.2426, allocations: 277 kB / 446.9 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.316e-05/0.2426, allocations: 100.8 kB / 447 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.2426, allocations: 11.94 kB / 447 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.19e-05/0.2427, allocations: 4.062 kB / 447 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.522e-05/0.2428, allocations: 11.97 kB / 447 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.2428, allocations: 8 kB / 447 MB, free: 4.617 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001008/0.2429, allocations: 170 kB / 447.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2429, allocations: 0 / 447.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002923/0.2432, allocations: 44 kB / 447.2 MB, free: 4.41 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 (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.0003647/0.2436, allocations: 0.8144 MB / 448 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001641/0.2437, allocations: 116.5 kB / 448.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2438, allocations: 480 / 448.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.888e-05/0.2438, allocations: 51.92 kB / 448.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/0.2443, allocations: 48.98 kB / 448.3 MB, free: 3.352 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.2462, allocations: 2.584 MB / 450.8 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.2464, allocations: 0.7677 MB / 451.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.2465, allocations: 30.28 kB / 451.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.2467, allocations: 79.41 kB / 451.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of SimCode: time 2.104e-06/0.2467, allocations: 3.938 kB / 451.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01422/0.2609, allocations: 4.246 MB / 456 MB, free: 11.49 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/0.2612, allocations: 210.2 kB / 456.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.067, allocations: 0 / 456.2 MB, free: 11.23 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/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)