Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001106/0.001106, allocations: 99.73 kB / 16.5 MB, free: 6.688 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.00114/0.00114, allocations: 192.5 kB / 17.42 MB, free: 6.09 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.284/1.284, 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.1751/0.1751, allocations: 38 MB / 308.6 MB, free: 6.23 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.001375/0.001375, allocations: 71.03 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2318, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.00466/0.2365, allocations: 4.85 MB / 434.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.2381, allocations: 1.162 MB / 436 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002175/0.2383, allocations: 27.81 kB / 436 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.2386, allocations: 39.69 kB / 436 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000481/0.2391, allocations: 183.2 kB / 436.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.2393, allocations: 83.86 kB / 436.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004661/0.2398, allocations: 0.627 MB / 436.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.24, allocations: 139.3 kB / 437.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.2402, allocations: 183 kB / 437.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003557/0.2406, allocations: 239.2 kB / 437.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.115e-05/0.2406, allocations: 20 kB / 437.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.48e-05/0.2407, allocations: 20 kB / 437.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.2408, allocations: 119.6 kB / 437.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.241, allocations: 167 kB / 437.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002589/0.2412, allocations: 362.7 kB / 438.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2413, allocations: 0 / 438.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2413, allocations: 0 / 438.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2413, allocations: 3.938 kB / 438.2 MB, free: 11.54 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001224/0.2425, allocations: 0.6946 MB / 438.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.2426, allocations: 12.03 kB / 438.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.562e-05/0.2426, allocations: 66.66 kB / 438.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.78e-05/0.2427, allocations: 44.41 kB / 439 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/0.2432, allocations: 375 kB / 439.3 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.2432, allocations: 20.56 kB / 439.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.2433, allocations: 24 kB / 439.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004075/0.2437, allocations: 364.7 kB / 439.7 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2437, allocations: 3.938 kB / 439.7 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.2437, allocations: 12 kB / 439.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.2437, allocations: 8 kB / 439.8 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.2441, allocations: 254 kB / 440 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.2454, allocations: 1.454 MB / 441.5 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.2456, allocations: 161.1 kB / 441.6 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.683e-05/0.2457, allocations: 77.73 kB / 441.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.2458, allocations: 7.922 kB / 441.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.2458, allocations: 42.5 kB / 441.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.2458, allocations: 0 / 441.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.000932/0.2467, allocations: 0.6721 MB / 442.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.2468, allocations: 81.11 kB / 442.5 MB, free: 6.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.247, allocations: 296.5 kB / 442.8 MB, free: 6.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.247, allocations: 33.64 kB / 442.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.769e-05/0.2471, allocations: 215.5 kB / 443 MB, free: 6.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.391e-05/0.2472, allocations: 59.19 kB / 443.1 MB, free: 6.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.279e-05/0.2472, allocations: 53.69 kB / 443.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.342e-05/0.2473, allocations: 338.8 kB / 443.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.589e-05/0.2474, allocations: 67.95 kB / 443.5 MB, free: 5.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.2475, allocations: 164.8 kB / 443.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.2478, allocations: 252.6 kB / 443.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2478, allocations: 4 kB / 444 MB, free: 5.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003091/0.2481, allocations: 292.8 kB / 444.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.2481, allocations: 4 kB / 444.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2481, allocations: 4 kB / 444.2 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.2481, allocations: 4.438 kB / 444.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.2484, allocations: 71.77 kB / 444.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.2484, allocations: 4 kB / 444.3 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.2486, allocations: 12 kB / 444.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.2486, allocations: 19.98 kB / 444.4 MB, free: 4.879 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 (29): * Single equations (assignments): 29 * 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.0001128/0.2487, allocations: 165.7 kB / 444.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/0.2488, allocations: 31.56 kB / 444.5 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000303/0.2491, allocations: 236 kB / 444.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.2491, allocations: 11.94 kB / 444.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2491, allocations: 0 / 444.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.2491, allocations: 3.984 kB / 444.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005487/0.2496, allocations: 0.6162 MB / 445.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2497, allocations: 0 / 445.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.2498, allocations: 39.92 kB / 445.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.2499, allocations: 4 kB / 445.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.2499, allocations: 0 / 445.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.2499, allocations: 0 / 445.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2499, allocations: 8.031 kB / 445.5 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000391/0.2503, allocations: 428.5 kB / 445.9 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.2503, allocations: 104.8 kB / 446 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.2504, allocations: 8 kB / 446 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.2505, allocations: 11.98 kB / 446 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.2506, allocations: 16.05 kB / 446 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.2506, allocations: 7.938 kB / 446 MB, free: 3.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.2507, allocations: 211.1 kB / 446.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2507, allocations: 0 / 446.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.2511, allocations: 60 kB / 446.3 MB, free: 2.828 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0005329/0.2516, allocations: 0.9519 MB / 447.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002522/0.2519, allocations: 191.6 kB / 447.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2519, allocations: 0 / 447.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.252, allocations: 92.11 kB / 447.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.2525, allocations: 64.67 kB / 447.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.2552, allocations: 3.018 MB / 450.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.2556, allocations: 0.8067 MB / 451.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002046/0.2558, allocations: 50.94 kB / 451.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.2559, allocations: 111.4 kB / 451.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.256, allocations: 4 kB / 451.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01552/0.2715, allocations: 5.655 MB / 457.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.2717, allocations: 202.2 kB / 457.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.172, allocations: 0 / 457.4 MB, free: 7.414 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)